2017-04-26 59 views
0

操作系統時:Windows7的64「無法設置屬性 '味精' 的空」 錯誤運行「的webdriver經理更新」

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經理12.0.5

回答

1

[email protected]沒有改變文件被下載的方式引起的。唯一的新事物是它不會在webdriver-manager start上下載新的緩存。可能存在的問題是,當文件寫入緩存響應時,您可能已取消該作業。

你可以做的是瀏覽到您的webdriver-manager/selenium/文件夾,刪除內容或只是刪除整個selenium/目錄,然後重試webdriver-manager update --ignore_ssl

+0

此外,答案不是真正的一部分,但你可以檢查一下的文件大小響應JSON和XML文件,如果大小爲0? – cnishina

+0

今天工作正常。看來問題是由geckodriver-v0.16.1.zip引起的。這個zip文件昨天被打破,不能解壓縮。 –

+0

有趣。很高興聽到它解決了。 – cnishina

相關問題