解决方案:
1.重新安装webpack(无效)
npm uninstall -g webapck
npm install -g webapck
2.将下载地址配置到国内的镜像上(无效)
npm config set chromedriver_cdnurl https://npm.taobao.org/mirrors/chromedriver
3.设置代理地址(未尝试)
直接修改系统的hosts文件,文件地址:C:\Windows\System32\drivers\etc
#192.30.253.112 github.com
#151.101.88.249 github.global.ssl.fastly.net
4.切换npm到淘宝镜像(有效)
先安装nrm
npm i nrm
查看可用路径
nrm ls
切换到淘宝镜像
nrm taobao