【内推字节】欢迎简历chengxinsong@bytedance.com
Current existing ChromeDriver binary is unavailable, proceding with download and extraction.
发布于 作者 suning 978 次浏览 来自 分享


原因是chromedriver的部分文件被国内网络给墙掉了,无法下载完整的chromedirver包,解决办法:

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

> chromedriver@2.46.0 install G:\02Github-5\happy-chat-web\node_modules\chromedriver
> node install.js

Current existing ChromeDriver binary is unavailable, proceding with download and extraction.
Downloading from file:  http://cdn.npm.taobao.org/dist/chromedriver/2.46/chromedriver_win32.zip
Saving to file: C:\Users\pc\AppData\Local\Temp\2.46\chromedriver\chromedriver_win32.zip
Received 781K...
Received 1595K...
Received 2377K...
Received 3160K...
Received 3942K...
Received 4523K total.
Extracting zip contents
Copying to target path G:\02Github-5\happy-chat-web\node_modules\chromedriver\lib\chromedriver
Done. ChromeDriver binary available at G:\02Github-5\happy-chat-web\node_modules\chromedriver\lib\chromedriver\chromedriver.exe
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ chromedriver@2.46.0



发布评论
微信群
saucxs聊天机器人
saucxs
hi ,欢迎来到sau交流学习社区,欢迎与我聊天,问我问题哦!