chromedriver_win32下载失败

爱⌒轻易说出口 提交于 2019-12-09 14:58:56

vue-cli ,webpack构建项目报错信息:

> chromedriver@2.34.1 install G:\NodeTest\simu800-wechat-admin\node_modules\chro
medriver
> node install.js

Downloading https://chromedriver.storage.googleapis.com/2.34/chromedriver_win32.
zip
Saving to C:\Users\lidf\AppData\Local\Temp\chromedriver\chromedriver_win32.zip
ChromeDriver installation failed Error with http(s) request: Error: read ECONNRE
SET
npm WARN rollback Rolling back node-pre-gyp@0.6.39 failed (this is probably harm
less): EPERM: operation not permitted, rmdir 'G:\NodeTest\simu800-wechat-admin\n
ode_modules\fsevents\node_modules'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fse
vents):

 

 

网上说是被墙了:

可以使用下面的命令安装:

npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver

使用 cnpm 安装亦可。

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!