- 报错
Current existing ChromeDriver binary is unavailable, proceding with download and extraction
- 情况
使用yarn
初始化vue
环境出错,提示chromedriver
安装失败。
一开始从官方网址上http://chromedriver.storage.googleapis.com/index.html?path=2.46/
下载,
直接进行替换, 发现并不生效,报同样的错误
后面发现设置使用淘宝源,成功解决,
原因是部分chromedirver
被墙导致安装失败。
- 解决方法
npm
设置: npm config set chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver
yarn
设置: yarn config set "chromedriver_cdnurl" "https://npm.taobao.org/mirrors/chromedriver"
网友评论