欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Current existing ChromeDriver binary is unavailable, proceding with download and extraction.

程序员文章站 2022-07-02 23:23:33
...

在日常开发时使用命令npm install 安装项目依赖 或者 npm init 初始化项目时可能会遇到以下问题
Current existing ChromeDriver binary is unavailable, proceding with download and extraction.

1. 解决方案a

当前存在ChromeDriver二进制文件不可获取,需要下载和提取

Current existing ChromeDriver binary is unavailable, proceding with download and extraction.

要从 官网 下载 chromedriver_win32 并保存到 vue 提示文件夹内

Downloading from file: https://chromedriver.storage.googleapis.com/2.46/chromedriver_win32.zip
Saving to file: C:\Users\ADMINI~1\AppData\Local\Temp\2.46\chromedriver\chromedriver_win32.zip



2. 解决方案b

其实 package.json 中可以看出 chromedriver 版本
Current existing ChromeDriver binary is unavailable, proceding with download and extraction.
文件是损坏的
Current existing ChromeDriver binary is unavailable, proceding with download and extraction.
运行一下命令安装国内的镜像

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

Current existing ChromeDriver binary is unavailable, proceding with download and extraction.

再运行 npm install 就可以把相关依赖装上啦哈
Current existing ChromeDriver binary is unavailable, proceding with download and extraction.

相关标签: npm