2017-06-04 329 views
0

我在嘗試安裝Vue CLI時遇到了問題。npm全局軟件包安裝問題

窗口10, 節點〜6.10.3 NPM〜3.10.10

npm WARN retry will retry, error on last attempt: Error: EBUSY: resource busy or locked, rename 'D:\Users\Subho\AppD                   ata\Local\Temp\npm-9484-8858437e\registry.npmjs.org\electron-to-chromium\-\electron-to-chromium-1.3.13.tgz.111430805                   1' -> 'D:\Users\Subho\AppData\Local\Temp\npm-9484-8858437e\registry.npmjs.org\electron-to-chromium\-\electron-to-chr                   omium-1.3.13.tgz' 
npm ERR! Windows_NT 10.0.14393 
npm ERR! argv "D:\\Program Files\\nodejs\\node.exe" "D:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js"                    "install" "--global" "vue-cli" 
npm ERR! node v6.10.3 
npm ERR! npm v3.10.10 

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> 
npm WARN retry will retry, error on last attempt: Error: EBUSY: resource busy or locked, rename 'D:\Users\Subho\AppD                   ata\Local\Temp\npm-9484-8858437e\registry.npmjs.org\electron-to-chromium\-\electron-to-chromium-1.3.13.tgz.311380074                   4' -> 'D:\Users\Subho\AppData\Local\Temp\npm-9484-8858437e\registry.npmjs.org\electron-to-chromium\-\electron-to-chr                   omium-1.3.13.tgz' 
npm ERR! Windows_NT 10.0.14393 
npm ERR! argv "D:\\Program Files\\nodejs\\node.exe" "D:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js"                    "install" "--global" "vue-cli" 
npm ERR! node v6.10.3 
npm ERR! npm v3.10.10 

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> 

請幫助我,我是如何解決的問題,並安裝VUE CLI

回答

2

我打消了我的舊節點js和安裝了當前版本8.0.0,我的問題解決了。