3

我是量角器的新手。使用“npm install -g protractor”安装后,当我尝试运行“webdriver-manager update”命令时,出现以下错误。

命令提示符的错误日志 -

C:\Users\USER##\AppData\Roaming\npm>webdriver-manager 更新

[15:50:38] E/start - Selenium Standalone 不存在。使用 webdriver-manager update --standalone 安装

C:\Users\USER##\AppData\Roaming\npm>webdriver-manager update --standalone [15:50:54] I/config_source - curl -oC:\Users\USER##\AppData\Roaming\npm\ node_modules\protractor\node_modules\webdriver-manager\selenium\standalone-response.xml https://selenium-release.storage.googleapis.com/ [15:50:54] I/config_source - curl -oC:\Users\USER ##\AppData\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager\selenium\chrome-response.xml https://chromedriver.storage.googleapis.com/

[15:50:54] I/config_source - curl -oC:\Users##\USER\AppData\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager\selenium\gecko-response.json https://api .github.com/repos/mozilla/geckodriver/releases

事件.js:183

  throw er; // Unhandled 'error' event
  ^

错误:getaddrinfo ENOTFOUND selenium-release.storage.googleapis.com selenium-release.storage.googleapis.com:443

at errnoException (dns.js:50:10)

at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:92:26)
4

0 回答 0