Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with npm install and running tests on a mac #114

Open
gziebold71 opened this issue Sep 14, 2022 · 2 comments
Open

Issues with npm install and running tests on a mac #114

gziebold71 opened this issue Sep 14, 2022 · 2 comments

Comments

@gziebold71
Copy link

Issue with npm install

Interestingly running npm install selenium-cucumber-js --save-dev within Intelij it runs without errors. However if I do it via command line I get the following:

npm ERR! code 1
npm ERR! path /Users/zieboldg/Documents/GitHub/selenium-cucumber-js/node_modules/electron-chromedriver
npm ERR! command failed
npm ERR! command sh -c node ./download-chromedriver.js
npm ERR! /Users/zieboldg/Documents/GitHub/selenium-cucumber-js/node_modules/electron-chromedriver/download-chromedriver.js:30
npm ERR!   if (err != null) throw err
npm ERR!                    ^
npm ERR! 
npm ERR! Error: Failed to find Electron v1.8.0 for darwin-arm64 at https://github.com/electron/electron/releases/download/v1.8.0/chromedriver-v1.8.0-darwin-arm64.zip
npm ERR!     at Request.<anonymous> (/Users/zieboldg/Documents/GitHub/selenium-cucumber-js/node_modules/nugget/index.js:197:61)
npm ERR!     at Request.emit (node:events:527:28)
npm ERR!     at Request.onRequestResponse (/Users/zieboldg/Documents/GitHub/selenium-cucumber-js/node_modules/request/request.js:1059:10)
npm ERR!     at ClientRequest.emit (node:events:527:28)
npm ERR!     at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:631:27)
npm ERR!     at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
npm ERR!     at TLSSocket.socketOnData (node:_http_client:494:22)
npm ERR!     at TLSSocket.emit (node:events:527:28)
npm ERR!     at addChunk (node:internal/streams/readable:315:12)
npm ERR!     at readableAddChunk (node:internal/streams/readable:289:9)

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/zieboldg/.npm/_logs/2022-09-14T00_39_21_710Z-debug-0.log
zieboldg@OCI-Mac selenium-cucumber-js % npm install updated-selenium-cucumber-js --save-dev
npm WARN deprecated [email protected]: Deprecated due to CVE-2021-21366 resolved in 0.5.0
npm WARN deprecated [email protected]: electron-prebuilt has been renamed to electron. For more details, see http://electron.atom.io/blog/2016/08/16/npm-install-electron
npm WARN deprecated [email protected]: Please use @electron/osx-sign moving forward. Be aware the API is slightly different
npm ERR! code 1
npm ERR! path /Users/zieboldg/Documents/GitHub/selenium-cucumber-js/node_modules/chromedriver
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! Only Mac 64 bits supported. 

Issue running tests

In Intelij I see the following when trying to run test
This version of ChromeDriver only supports Chrome version 86 Current browser version is 105.0.0

I tried updating/adding the following dependancies in package.json:

"chromedriver": "^105.0.0",
"selenium-webdriver": "4.4.0",
"webdriver-manager": "^12.1.8"

After making these changes and running npm install and npm update I get the same error. Maybe there is another dependency that needs to be updated or added?

@gziebold71 gziebold71 changed the title Issues with npm install and running tests on a mac (possibly m1 chip issue?) Issues with npm install and running tests on a mac Sep 14, 2022
@john-doherty
Copy link
Owner

What OS are you running this on?

@gziebold71
Copy link
Author

What OS are you running this on?

macOS Monterey 12.5.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants