美文网首页
Current existing ChromeDriver bi

Current existing ChromeDriver bi

作者: 鹊南飞_ | 来源:发表于2020-06-10 16:13 被阅读0次
  • 报错

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"

相关文章

网友评论

      本文标题:Current existing ChromeDriver bi

      本文链接:https://www.haomeiwen.com/subject/kfsptktx.html