栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

npm install:ChromeDriver installation failed Error with http(s) request: Error: read ETIMEDOUT

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

npm install:ChromeDriver installation failed Error with http(s) request: Error: read ETIMEDOUT

引言:用 jekins 部署报错,jenkins执行npm install 或cnpm install时安装chromeDriver报错
看日志报错是 chromedriver 安装超时,找了很多方法
1、npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver
报错 ChromeDriver installation failed Error with http(s) request: Error: connect ETIMEDOUT 220.181.135.208:80

2、cnpm install 等都没有解决我的问题
cnpm install的报错截图如下:

看到这里,从网上搜索ConnectionTimeoutError: Connect timeout for 5000ms,可参考以下地址:https://blog.csdn.net/weixin_40668374/article/details/108991619,
https://blog.csdn.net/weixin_44778202/article/details/93853062
解决方法:打开install.js,修改修改掉文件里面的常量 TIMEOUT、TIMEOUTS 的 5s 为 10s

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/974505.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号