chrismead
chrismead

Reputation: 2243

npm install chromedriver on Mac with M1 processor

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?

Upvotes: 7

Views: 9953

Answers (1)

sergej
sergej

Reputation: 1227

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

npm install [email protected]

Upvotes: 14

Related Questions