npm -g安装问题

时间:2017-07-26 06:12:14

标签: node.js npm

我无法安装任何东西,也无法运行任何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>

节点-v 7.0.0 npm -v 3.10.8

1 个答案:

答案 0 :(得分:0)

实际上,我也在GitHub上发布了这个问题。升级最新的npm稳定版需要完美的解决方案。 这是GitHub问题链接: https://github.com/npm/npm/issues/17931