Getting 'E/launcher - spawn Unknown system error -86' when 运行 chrome 用量角器驱动

Getting 'E/launcher - spawn Unknown system error -86' when running chrome driver with protractor

Mac OSX 版本:Catalina 10.15.7
节点版本:10.18.1
NPM 版本:6.13.4
量角器版本:5.4.2
Chrome驱动版本:87.0.4280.88
Chrome 浏览器版本:87.0.4280.141 (正式版) (x86_64)

我突然 运行 遇到问题,而 运行 一些量角器直接针对我的本地 Chrome 浏览器进行测试。 运行 ng e2e --devServerTarget=:

时遇到如下错误
[12:33:36] I/launcher - Running 1 instances of WebDriver
[12:33:36] I/direct - Using ChromeDriver directly...
[12:33:36] E/launcher - spawn Unknown system error -86
[12:33:36] E/launcher - Error: spawn Unknown system error -86
    at ChildProcess.spawn (internal/child_process.js:366:11)
    at Object.spawn (child_process.js:551:9)
    at exec (/Users/jonathanst@kainos.com/dev/code/cpp.idam.am.idam-frontend/node_modules/selenium-webdriver/io/exec.js:116:27)
    at resolveCommandLineFlags.then.args (/Users/jonathanst@kainos.com/dev/code/cpp.idam.am.idam-frontend/node_modules/selenium-webdriver/remote/index.js:219:25)
    at process._tickCallback (internal/process/next_tick.js:68:7)
From: Task: WebDriver.createSession()
    at Function.createSession (/Users/jonathanst@kainos.com/dev/code/cpp.idam.am.idam-frontend/node_modules/selenium-webdriver/lib/webdriver.js:769:24)
    at Function.createSession (/Users/jonathanst@kainos.com/dev/code/cpp.idam.am.idam-frontend/node_modules/selenium-webdriver/chrome.js:761:15)
    at Direct.getNewDriver (/Users/jonathanst@kainos.com/dev/code/cpp.idam.am.idam-frontend/node_modules/protractor/built/driverProviders/direct.js:77:33)
    at Runner.createBrowser (/Users/jonathanst@kainos.com/dev/code/cpp.idam.am.idam-frontend/node_modules/protractor/built/runner.js:195:43)
    at q.then.then (/Users/jonathanst@kainos.com/dev/code/cpp.idam.am.idam-frontend/node_modules/protractor/built/runner.js:339:29)
    at _fulfilled (/Users/jonathanst@kainos.com/dev/code/cpp.idam.am.idam-frontend/node_modules/q/q.js:834:54)
    at /Users/jonathanst@kainos.com/dev/code/cpp.idam.am.idam-frontend/node_modules/q/q.js:863:30
    at Promise.promise.promiseDispatch (/Users/jonathanst@kainos.com/dev/code/cpp.idam.am.idam-frontend/node_modules/q/q.js:796:13)
    at /Users/jonathanst@kainos.com/dev/code/cpp.idam.am.idam-frontend/node_modules/q/q.js:556:49
    at runSingle (/Users/jonathanst@kainos.com/dev/code/cpp.idam.am.idam-frontend/node_modules/q/q.js:137:13)
[12:33:36] E/launcher - Process exited with error code 199
An unexpected error occurred: undefined
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! idam-frontend@1.0.0 docker:e2e: `IDAM_TEST_ENV=docker ng e2e --devServerTarget=`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the idam-frontend@1.0.0 docker:e2e script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/jonathanst@kainos.com/.npm/_logs/2021-01-08T12_33_36_195Z-debug.log
make: *** [docker-e2e] Error 1

我没有对 protractor/chrome-driver 配置进行任何更改。它只是突然开始失败。我已经尝试过干净的构建,恢复我的更改,但我仍然遇到这个问题。请问有人能帮忙吗?

我今天早上遇到同样的错误,发现修复是 运行:
webdriver-manager update
npm install --force protractor
在最新的 webddriver-manager 更新中修复了这个问题。您需要强制对量角器进行依赖更新,才能使用最新的 webdriver-manager