minsin
minsin
2017-08-23 09:16

windows下运行npm run dev报错,查了很多资料,哪位大神指点下,感激~

  • node.js
  • vue.js
  • windows

0 info it worked if it ends with ok
1 verbose cli [ 'D:\nodejs\node.exe',
1 verbose cli 'D:\nodejs\node_global\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'dev' ]
2 info using npm@5.0.0
3 info using node@v8.4.0
4 verbose run-script [ 'predev', 'dev', 'postdev' ]
5 info lifecycle vue_elmentui@1.0.0~predev: vue_elmentui@1.0.0
6 silly lifecycle vue_elmentui@1.0.0~predev: no script for predev, continuing
7 info lifecycle vue_elmentui@1.0.0~dev: vue_elmentui@1.0.0
8 verbose lifecycle vue_elmentui@1.0.0~dev: unsafe-perm in lifecycle true
9 verbose lifecycle vue_elmentui@1.0.0~dev: PATH: D:\nodejs\node_global\node_modules\npm\bin\node-gyp-bin;D:\vueElmentUI\node_modules.bin;D:\cmder\bin;D:\cmder\vendor\git-for-windows\cmd;D:\cmder\vendor\conemu-maximus5\ConEmu\Scripts;D:\cmder\vendor\conemu-maximus5;D:\cmder\vendor\conemu-maximus5\ConEmu;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;D:\svn\bin;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;D:\Git\cmd;D:\java\bin;D:\MongoDB\bin;D:\MongoDB\bin;D:\nodejs\node_global;D:\cmder;D:\nodejs\node_global;D:\nodejs\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Users\xw\AppData\Roaming\npm;D:\cmder\vendor\git-for-windows\usr\bin;D:\cmder\vendor\git-for-windows\usr\share\vim\vim74;D:\cmder\
10 verbose lifecycle vue_elmentui@1.0.0~dev: CWD: D:\vueElmentUI
11 silly lifecycle vue_elmentui@1.0.0~dev: Args: [ '/d /s /c', 'node build/dev-server.js' ]
12 info lifecycle vue_elmentui@1.0.0~dev: Failed to exec dev script
13 verbose stack Error: vue_elmentui@1.0.0 dev: node build/dev-server.js
13 verbose stack spawn ;d:\Git\cmd ENOENT
13 verbose stack at _errnoException (util.js:1041:11)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:192:19)
13 verbose stack at onErrorNT (internal/child_process.js:374:16)
13 verbose stack at _combinedTickCallback (internal/process/next_tick.js:138:11)
13 verbose stack at process._tickCallback (internal/process/next_tick.js:180:9)
14 verbose pkgid vue_elmentui@1.0.0
15 verbose cwd D:\vueElmentUI
16 verbose Windows_NT 6.1.7601
17 verbose argv "D:\nodejs\node.exe" "D:\nodejs\node_global\node_modules\npm\bin\npm-cli.js" "run" "dev"
18 verbose node v8.4.0
19 verbose npm v5.0.0
20 error file ;d:\Git\cmd
21 error path ;d:\Git\cmd
22 error code ELIFECYCLE
23 error errno ENOENT
24 error syscall spawn ;d:\Git\cmd
25 error vue_elmentui@1.0.0 dev: node build/dev-server.js
25 error spawn ;d:\Git\cmd ENOENT
26 error Failed at the vue_elmentui@1.0.0 dev script.
26 error This is probably not a problem with npm. There is likely additional logging output above.
27 verbose exit [ 1, true ]

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答