Macaca 安装 macaca-chrome 报错

石文斌 · 2023年10月30日 · 最后由 恒温 回复于 2023年10月31日 · 4411 次阅读


npm WARN deprecated cryptiles@2.0.5: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated boom@2.10.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated sntp@1.0.9: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
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 node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated tough-cookie@2.2.2: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
npm WARN deprecated har-validator@2.0.6: this library is no longer supported
npm WARN deprecated hoek@2.16.3: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated request@2.69.0: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated hawk@3.1.3: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm ERR! code 1
npm ERR! path /opt/homebrew/lib/node_modules/macaca-chrome/node_modules/macaca-chromedriver
npm ERR! command failed
npm ERR! command sh -c node ./bin/macaca-chromedriver.js install
npm ERR! >> Chromedriver versions map:
npm ERR! [
npm ERR! {
npm ERR! "chromedriverVersion": "99.0.4844.17",
npm ERR! "webviewVersions": "99"
npm ERR! },
npm ERR! {
npm ERR! "chromedriverVersion": "98.0.4758.102",
npm ERR! "webviewVersions": "98"
npm ERR! },
npm ERR! {
npm ERR! "chromedriverVersion": "97.0.4692.20",
npm ERR! "webviewVersions": "97"
npm ERR! },
npm ERR! {
npm ERR! "chromedriverVersion": "96.0.4664.45",
npm ERR! "webviewVersions": "96"
npm ERR! },
npm ERR! {
npm ERR! "chromedriverVersion": "95.0.4638.17",
npm ERR! "webviewVersions": "95"
npm ERR! },
npm ERR! {
npm ERR! "chromedriverVersion": "94.0.4606.61",
npm ERR! "webviewVersions": "94"
npm ERR! },
npm ERR! {
npm ERR! "chromedriverVersion": "93.0.4577.15",
npm ERR! "webviewVersions": "93"
npm ERR! },
npm ERR! {
npm ERR! "chromedriverVersion": "92.0.4515.107",
npm ERR! "webviewVersions": "92"
npm ERR! },
npm ERR! {
npm ERR! "chromedriverVersion": "91.0.4472.19",
npm ERR! "webviewVersions": "91"
npm ERR! },
npm ERR! {
npm ERR! "chromedriverVersion": "90.0.4430.24",
npm ERR! "webviewVersions": "90"
npm ERR! },
npm ERR! {
npm ERR! "chromedriverVersion": "89.0.4389.23",
npm ERR! "webviewVersions": "89"
npm ERR! },
npm ERR! {
npm ERR! "chromedriverVersion": "88.0.4324.96",
npm ERR! "webviewVersions": "88"
npm ERR! },
npm ERR! {
npm ERR! "chromedriverVersion": "87.0.4280.88",
npm ERR! "webviewVersions": "87"
npm ERR! },
npm ERR! {
npm ERR! "chromedriverVersion": "86.0.4240.22",
npm ERR! "webviewVersions": "86"
npm ERR! },
npm ERR! {
npm ERR! "chromedriverVersion": "84.0.4147.30",
npm ERR! "webviewVersions": "84"
npm ERR! },
npm ERR! {
npm ERR! "chromedriverVersion": "83.0.4103.39",
npm ERR! "webviewVersions": "83"
npm ERR! },
npm ERR! {
npm ERR! "chromedriverVersion": "81.0.4044.138",
npm ERR! "webviewVersions": "81"
npm ERR! },
npm ERR! {
npm ERR! "chromedriverVersion": "80.0.3987.106",
npm ERR! "webviewVersions": "80"
npm ERR! },
npm ERR! {
npm ERR! "chromedriverVersion": "79.0.3945.36",
npm ERR! "webviewVersions": "79"
npm ERR! },
npm ERR! {
npm ERR! "chromedriverVersion": "78.0.3904.105",
npm ERR! "webviewVersions": "78"
npm ERR! },
npm ERR! {
npm ERR! "chromedriverVersion": "77.0.3865.40",
npm ERR! "webviewVersions": "77"
npm ERR! },
npm ERR! {
npm ERR! "chromedriverVersion": "76.0.3809.126",
npm ERR! "webviewVersions": "76"
npm ERR! },
npm ERR! {
npm ERR! "chromedriverVersion": "75.0.3770.140",
npm ERR! "webviewVersions": "75"
npm ERR! },
npm ERR! {
npm ERR! "chromedriverVersion": "74.0.3729.6",
npm ERR! "webviewVersions": "74"
npm ERR! },
npm ERR! {
npm ERR! "chromedriverVersion": "73.0.3683.68",
npm ERR! "webviewVersions": "73"
npm ERR! }
npm ERR! ]
npm ERR! >> versions.js:122:12 [master] pid:50556 No proper chromedriver version found for webview version: 118!
npm ERR! /opt/homebrew/lib/node_modules/macaca-chrome/node_modules/xlogger/lib/xlogger.js:169
npm ERR! throw new Error(res);
npm ERR! ^
npm ERR!
npm ERR! Error: >> versions.js:122:12 [master] pid:50556 No proper chromedriver version found for webview version: 118!
npm ERR! at Logger.error (/opt/homebrew/lib/node_modules/macaca-chrome/node_modules/xlogger/lib/xlogger.js:169:9)
npm ERR! at ChromedriverVersion.getVersionFromWebviewVersion (/opt/homebrew/lib/node_modules/macaca-chrome/node_modules/macaca-chromedriver/lib/versions.js:122:12)
npm ERR! at getInstalledChromeVersion (/opt/homebrew/lib/node_modules/macaca-chrome/node_modules/macaca-chromedriver/lib/install.js:27:35)
npm ERR! at install (/opt/homebrew/lib/node_modules/macaca-chrome/node_modules/macaca-chromedriver/lib/install.js:81:34)
npm ERR! at Command. (/opt/homebrew/lib/node_modules/macaca-chrome/node_modules/macaca-chromedriver/bin/macaca-chromedriver.js:19:5)
npm ERR! at Command.listener (/opt/homebrew/lib/node_modules/macaca-chrome/node_modules/commander/index.js:301:8)
npm ERR! at Command.emit (node:events:514:28)
npm ERR! at Command.parseArgs (/opt/homebrew/lib/node_modules/macaca-chrome/node_modules/commander/index.js:615:12)
npm ERR! at Command.parse (/opt/homebrew/lib/node_modules/macaca-chrome/node_modules/commander/index.js:458:21)
npm ERR! at Object. (/opt/homebrew/lib/node_modules/macaca-chrome/node_modules/macaca-chromedriver/bin/macaca-chromedriver.js:22:9)
npm ERR!
npm ERR! Node.js v20.8.1

npm ERR! A complete log of this run can be found in: /Users/shiwenbin/.npm/_logs/2023-10-30T08_31_05_727Z-debug-0.log

共收到 1 条回复 时间 点赞

chrome 版本的问题。

versions.js:122:12 [master] pid:50556 No proper chromedriver version found for webview version: 118!

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册