运维开发网
广告位招商联系QQ:123077622
 
广告位招商联系QQ:123077622

[email protected] postinstall: `node scripts/postinstall`

运维开发网 https://www.qedev.com 2020-07-25 14:46 出处:网络 作者:运维开发网整理
由于Node.js 版本太低了, 使用最新版用 Node.js =================================== 以下解决方法来源于网络 npm ERR! Windows_NT 6.3.9600 npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\node

由于Node.js 版本太低了, 使用最新版用 Node.js

===================================

以下解决方法来源于网络

npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "@vue/cli"
npm ERR! node v0.12.2
npm ERR! npm  v2.7.4
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! [email protected]6.8.8 postinstall: `node scripts/postinstall`
npm ERR! spawn C:\Windows\system32\cmd.exe ENOENT
npm ERR!
npm ERR! Failed at the [email protected]6.8.8 postinstall script ‘node scripts/postinstall‘.
npm ERR! This is most likely a problem with the protobufjs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node scripts/postinstall
npm ERR! You can get their info via:
npm ERR!     npm owner ls protobufjs
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     D:\OpenSource\ant-design-pro-vue\npm-debug.log

[email protected] postinstall: `node scripts/postinstall`

 

 

解决办法

npm install @vue/cli -g --ignore-scripts

npm install protobufjs -g --ignore-scripts

 

[email protected] postinstall: `node scripts/postinstall`

 

 

[email protected] postinstall: `node scripts/postinstall`

扫码领视频副本.gif

0

精彩评论

暂无评论...
验证码 换一张
取 消