首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >用M1处理器在Mac上安装色度驱动器

用M1处理器在Mac上安装色度驱动器
EN

Stack Overflow用户
提问于 2022-03-07 23:26:02
回答 1查看 2.9K关注 0票数 4

尝试在带有M1处理器的Mac上安装带有npm的色驱动器,并获得“只支持Mac 64位”:

代码语言:javascript
运行
复制
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 har-validator@5.1.5: this library is no longer supported
npm WARN deprecated json3@3.3.2: Please use the native JSON object instead of JSON 3
npm WARN deprecated uuid@3.4.0: 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 mkdirp@0.5.1: 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 request@2.88.2: 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

有人能找到解决办法吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-03-24 01:50:54

我也有同样的问题。在使用了chromedriver版本87.0.1或更高版本的之后,它就开始工作了。

代码语言:javascript
运行
复制
npm install chromedriver@87.0.1
票数 6
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71388374

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档