npm start,项目不会启动但过去常常工作,没有变化

时间:2016-07-11 06:07:30

标签: javascript node.js cmd npm

除了下载以外,我没有对我的项目进行任何更改,并开始使用Atom编辑器,但现在我的项目甚至没有启动。这是它给我的npm调试日志。我最近也安装了视觉工作室,这实际上是我尝试运行它们时的唯一差异,没有编辑或添加任何但仍然不再启动。我尝试从默认快递运行一个基本项目,并且不会运行

`0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'start' ]
2 info using npm@2.15.8
3 info using node@v4.4.7
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart HelloNode@0.0.0
6 info start HelloNode@0.0.0
7 verbose unsafe-perm in lifecycle true
8 info HelloNode@0.0.0 Failed to exec start script
9 verbose stack Error: HelloNode@0.0.0 start: `node ./bin/www`
9 verbose stack spawn C:\WINDOWS\system32\cmd.exe\ ENOENT
9 verbose stack     at exports._errnoException (util.js:873:11)
9 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
9 verbose stack     at onErrorNT (internal/child_process.js:344:16)
9 verbose stack     at nextTickCallbackWith2Args (node.js:442:9)
9 verbose stack     at process._tickCallback (node.js:356:17)
10 verbose pkgid HelloNode@0.0.0
11 verbose cwd C:\Users\andreww\Desktop\Projects\HelloNode
12 error Windows_NT 10.0.10586
13 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
14 error node v4.4.7
15 error npm  v2.15.8
16 error file C:\WINDOWS\system32\cmd.exe\
17 error path C:\WINDOWS\system32\cmd.exe\
18 error code ELIFECYCLE
19 error errno ENOENT
20 error syscall spawn C:\WINDOWS\system32\cmd.exe\
21 error HelloNode@0.0.0 start: `node ./bin/www`
21 error spawn C:\WINDOWS\system32\cmd.exe\ ENOENT
22 error Failed at the HelloNode@0.0.0 start script 'node ./bin/www'.
22 error This is most likely a problem with the HelloNode package,
22 error not with npm itself.
22 error Tell the author that this fails on your system:
22 error     node ./bin/www
22 error You can get information on how to open an issue for this project with:
22 error     npm bugs HelloNode
22 error Or if that isn't available, you can get their info via:
22 error
22 error     npm owner ls HelloNode
22 error There is likely additional logging output above.
23 verbose exit [ 1, true ]
`

0 个答案:

没有答案