Protractor Process exited with error code 100

hafizan  picture hafizan · May 6, 2019 · Viewed 12.7k times · Source

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?

Answer

Madhan picture Madhan · May 7, 2019

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