0

操作系统:Windows7 x64

npm:3.10.10

网络驱动程序管理器:12.0.5

量角器:5.1.1

节点:6.10.0

错误信息:

C:\Users\Administrator\AppData\Roaming\npm>webdriver-manager update --ignore_ssl
[14:34:48] I/http_utils - ignoring SSL certificate
[14:34:48] I/http_utils - ignoring SSL certificate
[14:34:48] I/http_utils - ignoring SSL certificate
[14:34:52] I/http_utils - ignoring SSL certificate
[14:34:53] I/http_utils - ignoring SSL certificate
[14:35:06] I/http_utils - ignoring SSL certificate
[14:35:57] I/update - chromedriver: unzipping chromedriver_2.29.zip
C:\Users\Administrator\AppData\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager\built\lib\files\downloader.js:53
                                    error.msg = 'Error: corrupt download for ' + fileName +
                                              ^

TypeError: Cannot set property 'msg' of null
    at fs.stat (C:\Users\Administrator\AppData\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager\built\lib\files\downloader.js:53:47)
    at FSReqWrap.oncomplete (fs.js:123:15)

昨天还可以,我认为这个错误是由新的 webdriver-manager 12.0.5 引起的

4

1 回答 1

1

webdriver-manager@12.0.5 没有改变文件的下载方式。唯一的新东西是它不会下载新的缓存webdriver-manager start。可能的问题是您可能在文件写入缓存响应时取消了作业。

您可以做的是导航到您的webdriver-manager/selenium/文件夹并删除内容,或者只是删除整个selenium/目录然后重试webdriver-manager update --ignore_ssl

于 2017-04-26T23:25:35.633 回答