刚克隆下来的代码在安装安装包时报了 npm ERR! chromedriver@2.46.0 install: node install.js
这个错误,下面我来说一下解决方法:
1、报错情况:
2、解决办法:
(1)运行编译以下
npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver
- 1
如果上面的不行的话,就运行:
npm install --ignore-scripts
- 1
(2)再重新安装安装包:
npm i
来自:https://blog.csdn.net/LiaoFengJi/article/details/98730494?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.edu_weight&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.edu_weight