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

npm install 報錯

下面是錯誤信息

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 [email protected] install: `node install.js`
112126 error Exit status 1
112127 error Failed at the [email protected] 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 install npm@latest -g

安裝成功

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章