当我webdriver-manager update
第一次执行时,我总是看到以下错误
PS H:\> webdriver-manager update
webdriver-manager: using global installed version 12.1.2
[09:55:15] I/config_source - curl -oC:\Users\myusername\AppData\Roaming\npm\node_modules\webdriver-manager\selenium\standalone-response.xml https://selenium-release.storage.googleapis.com/
[09:55:15] I/config_source - curl -oC:\Users\myusername\AppData\Roaming\npm\node_modules\webdriver-manager\selenium\chrome-response.xml https://chromedriver.storage.googleapis.com/
[09:55:15] I/config_source - curl -oC:\Users\myusername\AppData\Roaming\npm\node_modules\webdriver-manager\selenium\gecko-response.json https://api.github.com/repos/mozilla/geckodriver/releases
events.js:183
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at TLSWrap.onread (net.js:622:25)
但是,每当我再次运行它时,它总是会成功执行。我只在我现在的公司经历过这种情况,而且我知道它也发生在其他同事身上,所以我认为它一定是代理,但无法理解它是如何成功通过的。
任何关于如何更好地解决我的问题的解决方案或建议将不胜感激。
注意:我正在使用 powershell 执行命令