wanyi@DESKTOP-QG5SLAM MINGW64 /d/sourceCode/vue-paas-master/vue-pass (master)
$ npm run build

> vue-pass@1.0.0 build D:\sourceCode\vue-paas-master\vue-pass
> node build/build.js

npm ERR! file C:\Windows\system32\cmd.exe;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\SysWOW64
npm ERR! path C:\Windows\system32\cmd.exe;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\SysWOW64
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn C:\Windows\system32\cmd.exe;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\SysWOW64
npm ERR! vue-pass@1.0.0 build: `node build/build.js`
npm ERR! spawn C:\Windows\system32\cmd.exe;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\SysWOW64 ENOENT
npm ERR!
npm ERR! Failed at the vue-pass@1.0.0 build 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:
npm ERR!     C:\Users\wanyi\AppData\Roaming\npm-cache\_logs\2019-04-18T11_34_30_486Z-debug.log

将系统环境变量ComSpec 去掉,这个环境变量是关于window相关的cmd 指令执行器路径相关的

win10  ComSpec  = %SystemRoot%\system32\cmd.exe; C:\Windows\SysWOW64; %SystemRoot%\System32\Wbem;
%SystemRoot%;%SystemRoot%\system32

删除工程中package-lock.json 和node_modules 重新install 

 

 

Logo

前往低代码交流专区

更多推荐