Closed deeperton closed 9 years ago
Same problem here:
Updating selenium standalone
downloading http://selenium-release.storage.googleapis.com/2.42/selenium-server-standalone-2.42.2.jar...
Updating chromedriver
downloading http://chromedriver.storage.googleapis.com/2.10/chromedriver_linux64.zip...
chromedriver_2.10.zip downloaded to /local/NWP/nwp-0f968c9/client/node_modules/grunt-protractor-runner/node_modules/protractor/selenium/chromedriver_2.10.zip
Invalid or unsupported zip format. No END header found
npm ERR! grunt-protractor-runner@1.1.2 postinstall: `webdriver-manager update`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the grunt-protractor-runner@1.1.2 postinstall script.
npm ERR! This is most likely a problem with the grunt-protractor-runner package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! webdriver-manager update
npm ERR! You can get their info via:
npm ERR! npm owner ls grunt-protractor-runner
npm ERR! There is likely additional logging output above.```
@deeperton @dgrad, Thanks for reporting this bug, I'll take a look and try to reproduce it locally. I'll get back to you then.
I've changed the URL which could be the reason why it was not working. Can you try again now?
BTW, I've released a new NPM version in case you want to try it.
Sorry, for the delay
$ npm uninstall -g protractor
...
$ npm install -g protractor
...
$ webdriver-manager update
Updating selenium standalone
downloading http://selenium-release.storage.googleapis.com/2.42/selenium-server-standalone-2.42.2.jar...
Updating chromedriver
downloading http://chromedriver.storage.googleapis.com/2.10/chromedriver_linux64.zip...
chromedriver_2.10.zip downloaded to /usr/local/lib/node_modules/protractor/selenium/chromedriver_2.10.zip
selenium-server-standalone-2.42.2.jar downloaded to /usr/local/lib/node_modules/protractor/selenium/selenium-server-standalone-2.42.2.jar
$ |
Seems to be OK.
@dgrad ?
Hi @deeperton, that's another project (protractor). This is a fork of that webdriver-manager
command.
Oh... I thought that the protractor use this project as sub module. Sorry, my bad.
So, I think we can close this issue :) .
Thanks for the fix. In my case the issue was not consistently reproducible so I can't test reliably if it's definitely fixed
@dgrad Great. Keep me posted, if in the future you are able to reproduce it, I'll take a look into it. Thanks!
Just removed my local node_modules and run the npm install and then wanted to update the webdriver and having this kind of problem
Running "shell:update_webdriver" (shell) task
Updating selenium standalone
downloading https://selenium-release.storage.googleapis.com/2.43/selenium-server-standalone-2.43.1.jar...
Updating chromedriver
downloading https://chromedriver.storage.googleapis.com/2.10/chromedriver_linux64.zip...
chromedriver_2.10.zip downloaded to /home/ernest/projects/project/node_modules/protractor/selenium/chromedriver_2.10.zip
Warning: Command failed:
Invalid or unsupported zip format. No END header found
Use --force to continue.
@2ernestkg can you tell me if you are having the same issue with the following fork? https://github.com/mattp-/webdriver-manager
@mattp- is using a different way of unzipping the files. If it does work better I can merge it and release a new version. Thanks!
After taking a closer look, that won't work on Windows. I'm still doing some research on other options.
I just ran into the same issue
selenium standalone is up to date.
chromedriver is up to date.
/usr/local/lib/node_modules/webdriver-manager/node_modules/adm-zip/zipFile.js:66
throw Utils.Errors.INVALID_FORMAT;
^
Invalid or unsupported zip format. No END header found
I've just merged this https://github.com/pose/webdriver-manager/pull/6, can you tell me if you are still facing the same issues after this? The new version that contains these changes is 2.0.0. Thanks
I had found the alternative download link here: http://chromedriver.storage.googleapis.com/index.html?path=2.10/
Download the suitable file: and extract it "chromedriver.exe" to: [project]\node_modules\protractor\selenium\
I've tried reproducing this issue in Windows and I'm not getting that error any more. Feel free to re-open if you are still facing this issue. Thanks!
Then, try again
but folder
/usr/local/lib/node_modules/protractor/selenium/
doesn't containschromedriver
.Fix: manual download and extract
chromedriver
.