简体   繁体   English

npm -g安装问题

[英]npm -g install issue

I am not able to install anything and also can't able to run any npm script form package.json 我无法安装任何东西,也无法运行任何npm脚本package.json

PS D:\Users\Subho> npm install -g json-server
npm WARN retry will retry, error on last attempt: Error: EBUSY: resource busy or locked, rename 'D:\Users\Subho\AppData\
Local\Temp\npm-8508-54f2d409\registry.npmjs.org\basic-auth\-\basic-auth-1.1.0.tgz.3339144024' -> 'D:\Users\Subho\AppData
\Local\Temp\npm-8508-54f2d409\registry.npmjs.org\basic-auth\-\basic-auth-1.1.0.tgz'
npm ERR! Windows_NT 10.0.15063
npm ERR! argv "D:\\Program Files\\nodejs\\node.exe" "D:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "ins
tall" "-g" "json-server"
npm ERR! node v7.0.0
npm ERR! npm  v3.10.8

npm ERR! tarball.destroy is not a function
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

Node -v 7.0.0 npm -v 3.10.8 节点-v 7.0.0 npm -v 3.10.8

Actually, I have also posted this question on GitHub. 实际上,我也已经在GitHub上发布了这个问题。 The perfect solution is needed to upgrade the latest npm stable version. 升级最新的npm稳定版本需要完美的解决方案。 Here is the GitHub issue link: https://github.com/npm/npm/issues/17931 这是GitHub问题链接: https : //github.com/npm/npm/issues/17931

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM