“运行”webdriver-manager update“时无法设置属性'msg'为null”错误

时间:2017-04-26 07:11:34

标签: protractor webdriver-manager

操作系统:Windows7 x64

NPM:3.10.10

的webdriver管理器:12.0.5

量角器:5.1.1

的NodeJS: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引起的。

1 个答案:

答案 0 :(得分:1)

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

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