更新的webdriver失败

问题描述 投票:0回答:1

我试图安装量角器和我目前停留在更新网络驱动程序。

我正在节点8.9.4和NPM版本是5.6.0。

当我运行以下命令

webdriver-manager update --ignore_ssl

我得到下面的异常。

[18:10:35] I/http_utils - ignoring SSL certificate
[18:10:35] I/config_source - curl -ok ...\node_modules\protractor\node_modules\webdriver-manager\selenium\standalone-response.xml https://selenium-release.storage.googleapis.com/
[18:10:35] I/http_utils - ignoring SSL certificate
[18:10:35] I/config_source - curl -ok ...\node_modules\protractor\node_modules\webdriver-manager\selenium\chrome-response.xml https://chromedriver.storage.googleapis.com/
[18:10:35] I/http_utils - ignoring SSL certificate
[18:10:35] I/config_source - curl -ok ...\node_modules\protractor\node_modules\webdriver-manager\selenium\gecko-response.json https://api.github.com/repos/mozilla/geckodriver/releases
(node:19392) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'ListBucketResult' of undefined
(node:19392) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[18:10:35] I/http_utils - ignoring SSL certificate
[18:10:35] I/http_utils - ignoring SSL certificate
[18:10:36] I/downloader - curl -ok ...\node_modules\protractor\node_modules\webdriver-manager\selenium/selenium-server-standalone-3.141.59.jar https://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.59.jar
[18:10:36] I/downloader - curl -ok ...\node_modules\protractor\node_modules\webdriver-manager\selenium/selenium-server-standalone-3.141.59.jar https://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.59.jar
[18:10:36] I/http_utils - ignoring SSL certificate
[18:10:37] I/downloader - curl -ok ...\node_modules\protractor\node_modules\webdriver-manager\selenium/geckodriver-v0.24.0.zip https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-win32.zip
[18:10:37] I/update - geckodriver: unzipping geckodriver-v0.24.0.zip

...\node_modules\adm-zip\zipFile.js:66
                        throw Utils.Errors.INVALID_FORMAT;
                        ^
Invalid or unsupported zip format. No END header found
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] webdriver: `webdriver-manager update --versions.chrome 2.38 --ignore_ssl`
angular selenium-webdriver protractor webdriver
1个回答
0
投票

一些investigaion后,我发现了什么可能是问题。在ADM-ZIP已经有提高门票此错误:https://github.com/cthackers/adm-zip/issues/99

在那里,你有一个讨论关于你的问题:https://github.com/angular/protractor/issues/1005

© www.soinside.com 2019 - 2024. All rights reserved.