码上敲享录 > linux系统常见问题 > npm ERR! code ELIFECYCLE

npm ERR! code ELIFECYCLE

上一章章节目录下一章 2019-11-27已有372人阅读 评论(0)

npm ERR! code ELIFECYCLE


解决方法:

我在linux下执行npm install报错

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! chromedriver@2.46.0 install: `node install.js`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the chromedriver@2.46.0 install script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

npm ERR!     /root/.npm/_logs/2019-11-27T02_18_17_257Z-debug.log


我使用npm install无乱如何都报错,后来我改成了cnpm install就成功了

linux中依次执行:

npm install -g cnpm --registry=https://registry.npm.taobao.org

cnpm install


如果找不到cnpm就要安装cnpm,和安装npm一样,我添加一个软连接就ok了:ln -s /opt/node-v10.8.0-linux-x64/bin/cnpm /usr/local/bin/,这个要看你node怎么安装的,我安装node地址:http://www.yayihouse.com/yayishuwu/chapter/2291


0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交