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也升级到了最新版本

猜你喜欢

转载自my.oschina.net/u/2931319/blog/1594735
今日推荐