admin管理员组

文章数量:1400614

I tried to update the selenium webdriver using the "webdriver-manager", but i get the error as,

Error: Got error Error: read ECONNRESET from .48/selenium-server-standalone-2.48.2.jar
Error: Got error Error: read ECONNRESET from .48/selenium-server-standalone-2.48.2.jar
fs.js:60
      throw err;  // Forgot a callback but don't know where? Use NODE_DEBUG=fs
      ^

Error: EPERM: operation not permitted, unlink 'C:\Users\user_name\AppData\Roaming\npm\node_modules\protractor\selenium\selenium-server-standalone-2.48.2.jar'
    at Error (native)

I am not sure what was the cause. I tried updating the protractor too, but no luck.

Also i tried running the mand prompt as administrator and run

webdriver-manager update --ignore_ssl

Please help.

I tried to update the selenium webdriver using the "webdriver-manager", but i get the error as,

Error: Got error Error: read ECONNRESET from https://selenium-release.storage.googleapis./2.48/selenium-server-standalone-2.48.2.jar
Error: Got error Error: read ECONNRESET from https://selenium-release.storage.googleapis./2.48/selenium-server-standalone-2.48.2.jar
fs.js:60
      throw err;  // Forgot a callback but don't know where? Use NODE_DEBUG=fs
      ^

Error: EPERM: operation not permitted, unlink 'C:\Users\user_name\AppData\Roaming\npm\node_modules\protractor\selenium\selenium-server-standalone-2.48.2.jar'
    at Error (native)

I am not sure what was the cause. I tried updating the protractor too, but no luck.

Also i tried running the mand prompt as administrator and run

webdriver-manager update --ignore_ssl

Please help.

Share Improve this question edited Feb 16, 2017 at 20:25 craig 5,0161 gold badge24 silver badges40 bronze badges asked Jan 11, 2016 at 10:23 AJJAJJ 3,6287 gold badges47 silver badges78 bronze badges 2
  • 1 Could you try manually downloading selenium-release.storage.googleapis./2.48/… ? It looks like some firewall/dns/whatever network error. – cvakiitho Commented Jan 11, 2016 at 11:02
  • @cvakiitho yes, it is a firewall problem. Can you let me know how can we download from http site instead of https? where can i change this config in selenium update? – AJJ Commented Jan 11, 2016 at 14:10
Add a ment  | 

4 Answers 4

Reset to default 2

I have solved the issue as below,

// Update chrome alone
    webdriver-manager update --standalone=0 --chrome --alternate_cdn http://chromedriver.storage.googleapis./

// Update selenium alone
    webdriver-manager update --chrome=0 --standalone --alternate_cdn http://selenium-release.storage.googleapis./

I was facing same issue and got the below error when running update chrome driver. Error: Got error Error: self signed certificate in certificate chain from https://chromedriver.storage.googleapis./2.21/chromedriver_win32.zip I manually downloaded the driver saved it as node_modules\protractor\selenium\chromedriver_2.21.exe and it worked. I was running it from my office network

it actually works over http as well: http://selenium-release.storage.googleapis./2.48/selenium-server-standalone-2.48.2.jar , just find-replace it inside the library.

Or download it manually to: node_modules/protractor/selenium

i had same problem.

Solution for me was updating node.js (best way to do it - just download latest version and install it).

本文标签: javascriptselenium webdriver manager updatenpmStack Overflow