node.js npm install error 安裝失敗 解決方案:升級npm版本

npm install 報錯node

下面是錯誤信息chrome

112121 error Windows_NT 6.1.7601
112122 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
112123 error node v6.10.0
112124 error npm  v3.10.10
112125 error code ELIFECYCLE
112126 error chromedriver@2.34.0 install: `node install.js`
112126 error Exit status 1
112127 error Failed at the chromedriver@2.34.0 install script 'node install.js'.
112127 error Make sure you have the latest version of node.js and npm installed.
112127 error If you do, this is most likely a problem with the chromedriver package,
112127 error not with npm itself.
112127 error Tell the author that this fails on your system:
112127 error     node install.js
112127 error You can get information on how to open an issue for this project with:
112127 error     npm bugs chromedriver
112127 error Or if that isn't available, you can get their info via:
112127 error     npm owner ls chromedriver
112127 error There is likely additional logging output above.
112128 verbose exit [ 1, true ]

這是由於npm的版本太低npm

解決方案:執行以下命令安裝this

npm install npm@latest -g

安裝成功code

模塊安裝成功, npm也升級到了最新版本orm

相關文章
相關標籤/搜索