npm在twi-es6上失败

时间:2018-11-14 22:55:17

标签: node.js npm webpack ecmascript-6

我已经卸载并重新安装了npm和webpack以及所有节点模块。将我的路径和环境变量与其他可以工作的机器进行了比较。 无论如何,我都会失败:

npm run watch
'CALL "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\\node_modules\npm\bin\npm-cli.js" prefix -g' is not recognized as an internal or external command,
operable program or batch file.

> twi-es6@1.0.0 watch C:\GIT_Projects\webroot2\webroot\resources\src
> webpack -w --progress

npm ERR! file C:\WINDOWS\system32\cmd.exe;
npm ERR! path C:\WINDOWS\system32\cmd.exe;
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn C:\WINDOWS\system32\cmd.exe;
npm ERR! twi-es6@1.0.0 watch: `webpack -w --progress`
npm ERR! spawn C:\WINDOWS\system32\cmd.exe; ENOENT
npm ERR!
npm ERR! Failed at the twi-es6@1.0.0 watch script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

21 error file C:\WINDOWS\system32\cmd.exe;
22 error path C:\WINDOWS\system32\cmd.exe;
23 error code ELIFECYCLE
24 error errno ENOENT
25 error syscall spawn C:\WINDOWS\system32\cmd.exe;
26 error twi-es6@1.0.0 watch: `webpack -w --progress`
26 error spawn C:\WINDOWS\system32\cmd.exe; ENOENT
27 error Failed at the twi-es6@1.0.0 watch script.
27 error This is probably not a problem with npm. There is likely additional logging output above.
28 verbose exit [ 1, true ]

0 个答案:

没有答案