npm install chromedriver on Mac with M1 processor
Asked Answered
I

1

7

Trying to install chromedriver with npm on a Mac with an M1 processor and getting "Only Mac 64 bits supported.":

npm install chromedriver
npm WARN ancient lockfile 
npm WARN ancient lockfile The package-lock.json file was created with an old version of npm,
npm WARN ancient lockfile so supplemental metadata must be fetched from the registry.
npm WARN ancient lockfile 
npm WARN ancient lockfile This is a one-time fix-up, please be patient...
npm WARN ancient lockfile 
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please use the native JSON object instead of JSON 3
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! code 1
npm ERR! path /Users/aaa/xxx/typescript-selenium-example/node_modules/chromedriver
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! Only Mac 64 bits supported.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/aaa/.npm/_logs/2022-03-07T23_22_42_068Z-debug-0.log

Anyone find a workaround?

Iredale answered 7/3, 2022 at 23:26 Comment(0)
F
14

I had the same problem. I got it working after I used chromedriver version 87.0.1 or higher.

npm install [email protected]
Faviolafavonian answered 24/3, 2022 at 1:50 Comment(1)
This fails for my Mac 2021 running macOS montery GotError [HTTPError]: Response code 404 (Not Found) for https://github.com/electron/electron/releases/download/v9.0.0/chromedriver-v9.0.0-darwin-arm64.zipRemediable

© 2022 - 2024 — McMap. All rights reserved.