nodemon,主pipe,永远都给不同的错误,有什么build议吗?

我已经尝试了所有三个一个一个地安装在全球范围内。 但似乎没有工作。 我正在使用这些重新启动服务器时,我做任何更改。

以下是我正在使用的命令。

nodemon npm start forever npm start supervisor npm start 

来自主pipe的错误

 Error: Cannot find module 'E:\dv\MEAN Lynda - Developing for the MEAN Stack and MongoDB\projects\project\start' at Function.Module._resolveFilename (module.js:339:15) at Function.Module._load (module.js:290:25) at Function.Module.runMain (module.js:447:10) at startup (node.js:142:18) at node.js:939:3 Program node start exited with code 1 Starting child process with 'node start' module.js:341 throw err; ^ 

从永远的错误

 E:\dv\MEAN Lynda - Developing for the MEAN Stack and MongoDB\projects\project>f orever npm start warn: --minUptime not set. Defaulting to: 1000ms warn: --spinSleepTime not set. Your script will exit if it does not stay up f or at least 1000ms error: Cannot start forever error: script E:\dv\MEAN Lynda - Developing for the MEAN Stack and MongoDB\pr ojects\project\npm does not exist. 

你应该检查package.json文件是否已经正确指定了“start”键的值。 永远和主pipe使用如下。 你总是可以input并检查使用:

 forever -h supervisor -h 

你会发现下面的输出作为使用pipe理员的例子:

 Examples: supervisor myapp.js supervisor myapp.coffee supervisor -w scripts -e myext -x myrunner myapp supervisor -- server.js -h host -p port 

永远使用如下:

 forever start app.js