量角器进程退出,错误代码 100 [英] Protractor Process exited with error code 100

查看:93
本文介绍了量角器进程退出,错误代码 100的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在不同的计算机上设置量角器.它与我的另一台计算机使用相同的文件(无法使用,因为 hdisc 损坏).

它在我的另一台计算机上运行良好,但是当我尝试在这台计算机上运行量角器时出现错误进程退出,错误代码 100".

我尝试删除节点模块、清理缓存并再次执行 npm install 以安装依赖项.它有助于我之前的问题(无法运行 webdriver),但现在导致我出现这个问题.

<预><代码>[14:44:09] I/launcher - 运行 1 个 WebDriver 实例[14:44:09] I/local - 启动 selenium 独立服务器......[14:44:11] E/launcher - 错误:错误:服务器提前终止,状态为 1在 earlyTermination.catch.e (C:\Users\PMO\Documents\DG\Jasmine\node_modules\selenium-webdriver\remote\index.js:252:52)在 process._tickCallback (internal/process/next_tick.js:68:7)[14:44:11] E/launcher - 进程退出,错误代码 100错误!代码生命周期npm 错误!错误 100npm 错误!量角器教程@量角器:`量角器conf.js`错误!退出状态 100错误!错误!在 protractor@ protractor 脚本中失败.

我当前的 chrome 版本是:74.0.3729.131Webdriver 版本:chromedriver_74.0.3729.6.exe操作系统:Windows 10.

请告诉我如何解决这个问题.或者是否有任何特定版本的 chrome 和 webdriver 可以工作?

解决方案

在您的 config 中使用 directConnect=true.如果您已经在使用它,则问题出在 webdriver 上.

尝试从您的项目位置运行以下命令

webdriver-manager clean节点 node_modules/protractor/bin/webdriver-manager update --standalone --versions.standalone=3.8.0

I'm trying to setup protractor on different computer. It is using the same files with my other computer (cannot be used because hdisc corrupted).

It run fine on my other computer but I am getting error "Process exited with error code 100" when I tried to run protractor on this one.

I've tried to delete the node modules, clean cache and perform npm install again to install the dependencies. It helps my earlier issue (cannot run webdriver) but is now causing me this one.


[14:44:09] I/launcher - Running 1 instances of WebDriver
[14:44:09] I/local - Starting selenium standalone server...
[14:44:11] E/launcher - Error: Error: Server terminated early with status 1
    at earlyTermination.catch.e (C:\Users\PMO\Documents\DG\Jasmine\node_modules\selenium-webdriver\remote\index.js:252:52)
    at process._tickCallback (internal/process/next_tick.js:68:7)
[14:44:11] E/launcher - Process exited with error code 100
npm ERR! code ELIFECYCLE
npm ERR! errno 100
npm ERR! ProtractorTutorial@ protractor: `protractor conf.js`
npm ERR! Exit status 100
npm ERR!
npm ERR! Failed at the protractor@ protractor script.

My current chrome version is: 74.0.3729.131 Webdriver version: chromedriver_74.0.3729.6.exe OS: Windows 10.

Please advise me on how to fix this issue. Or is there any specific version of chrome and webdriver that can work?

解决方案

use directConnect=true in your config. if you are already using that, The problem is with the webdriver.

Try running below commands from your project location

webdriver-manager clean

node node_modules/protractor/bin/webdriver-manager update --standalone --versions.standalone=3.8.0

这篇关于量角器进程退出,错误代码 100的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆