gpt4 book ai didi

node.js - 使用 Protractor 运行 chrome 驱动程序时获取 'E/launcher - spawn Unknown system error -86'

转载 作者:行者123 更新时间:2023-12-03 12:14:07 26 4
gpt4 key购买 nike

Mac OSX 版本:Catalina 10.15.7
Node 版本:10.18.1
NPM 版本:6.13.4
Protractor 版本:5.4.2
Chrome 驱动程序版本:87.0.4280.88
Chrome 浏览器版本:87.0.4280.141(官方版本)(x86_64)
在直接针对本地 Chrome 浏览器运行一些 Protractor 测试时,我突然遇到了问题。我在运行 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 驱动程序配置进行任何更改。它只是突然开始失败。我尝试过干净的构建,恢复我的更改,但我仍然遇到这个问题。请问有人可以帮忙吗?

最佳答案

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

关于node.js - 使用 Protractor 运行 chrome 驱动程序时获取 'E/launcher - spawn Unknown system error -86',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65630407/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com