protractor icon indicating copy to clipboard operation
protractor copied to clipboard

issue with the webdriver-manager start

Open ghost opened this issue 12 years ago • 21 comments

when I run webdriver-manager start, after an update which processes successfully, I get this error:

C:\Program Files\nodejs\node_modules\webdriver-manager\lib\index.js:243
  console.log('seleniumProcess.pid: ' + seleniumProcess.pid);
                                        ^
ReferenceError: seleniumProcess is not defined
    at WebdriverManager.start (C:\Program Files\nodejs\node_modules\webdriver-ma
nager\lib\index.js:243:41)
    at Object.<anonymous> (C:\Program Files\nodejs\node_modules\webdriver-manage
r\bin\webdriver-manager:59:22)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:906:3

I'm trying to run this on a 64bit windows 7 machine, running node v0.10.29 and Java SE runtime environment build 1.8.0_05-513. Do I need to install some separate selenium dependency for windows? Seems obvious and common, but I tried to google this but I found no one with the same error.

ghost avatar Jul 11 '14 20:07 ghost

That's weird. The variable seleniumProcess is defined in the line above that. It almost seems as if the node script is corrupted. Can you try updating protractor and try again?

juliemr avatar Jul 11 '14 20:07 juliemr

Doesn't work. I installed it via npm at first. Then I tried a git clone; npm install. But no difference.

C:\> protractor --version
Version 1.0.0-rc4

Though, when I did npm install after doing clone from this repo, I got these warnings:

C:\> npm install
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29
","npm":"1.4.20"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29"
,"npm":"1.4.20"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29"
,"npm":"1.4.20"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29"
,"npm":"1.4.20"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.1
0.29","npm":"1.4.20"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29
","npm":"1.4.20"})
npm WARN optional dep failed, continuing [email protected]
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29"
,"npm":"1.4.20"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.1
0.29","npm":"1.4.20"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29"
,"npm":"1.4.20"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29"
,"npm":"1.4.20"})

Though, it seems to still install fine, despite these warnings.

Maybe that will lead to some insight as to what the problem is...

ghost avatar Jul 11 '14 21:07 ghost

Is this still an issue?

juliemr avatar Sep 04 '14 20:09 juliemr

No response, so I'm closing assuming this is no longer an issue.

juliemr avatar Sep 23 '14 00:09 juliemr

FYI: Had the same on Windows.

Turns out cmd wasn't in my PATH.

jabbink avatar Apr 03 '15 15:04 jabbink

when I run webdriver-manager start, after an update which processes successfully, I get this error:

C:\Users\Developer>webdriver-manager start seleniumProcess.pid: undefined events.js:85 throw er; // Unhandled 'error' event ^ Error: spawn cmd ENOENT at exports._errnoException (util.js:746:11) at Process.ChildProcess._handle.onexit (child_process.js:1053:32) at child_process.js:1144:20 at process._tickCallback (node.js:355:11) at Function.Module.runMain (module.js:503:11) at startup (node.js:129:16) at node.js:814:3

Rajafkvp avatar Jun 22 '15 10:06 Rajafkvp

jabbink's comment fixed the issue for me on Windows.

gbmhunter avatar Jul 09 '15 04:07 gbmhunter

Getting same error on my desktop on Windows 7 enterprise. Could u please provide the better solution for this? C:\Users\E0360862>webdriver-manager start selenium.pid: undefined events.js:85 throw er; // Unhandled 'error' event ^ Error: spawn cmd ENOENT at exports._errnoException (util.js:746:11) at Process.ChildProcess._handle.onexit (child_process.js:1053:32) at child_process.js:1144:20 at process._tickCallback (node.js:355:11) at Function.Module.runMain (module.js:503:11) at startup (node.js:129:16) at node.js:814:3

Thanks.

mona9301 avatar Aug 03 '15 07:08 mona9301

If jabbink's solution didn't work, add "C:\Windows\System32" to your PATHs. On windows, right-click My Computer -> Properties -> Advanced system settings -> Environment Variables -> Edit... PATH and add "C:\Windows\System32" to the end (with a semi-colon separating each variable).

ntoungILL avatar Sep 23 '15 21:09 ntoungILL

@mona9301's issue also happens on Linux. (Kubuntu 14.04) I found I didn't install Java. I installed it and the issue is fixed.

I think webdriver-manager should show error message that java is not installed or not under PATH. @juliemr Can you reopen this?

phanect avatar Dec 26 '15 10:12 phanect

jabbink's comment fixed the issue for me on Windows. If you do not have administrative priviliges to change your path variable, you can do this in your command line

SET PATH=%PATH%;C:\Windows\System32

helloanoop avatar Feb 15 '16 19:02 helloanoop

Thanks all for your good response.. This issue is resolved.

mona9301 avatar Mar 19 '16 02:03 mona9301

Thanks all,It even solved my issue

saikishore12 avatar Apr 19 '16 08:04 saikishore12

i used this approach and it solve my issue thanks .for the post "C:\Windows\System32" to your PATHs. On windows, right-click My Computer -> Properties -> Advanced system settings -> Environment Variables -> Edit... PATH and add "C:\Windows\System32" to the end (with a semi-colon separating each variable)

jayantabms avatar Jul 14 '16 19:07 jayantabms

I reproduced this error today when trying to install protractor and then start the webdriver-manager in Fedora

harmin-parra avatar Dec 12 '16 16:12 harmin-parra

I got it. I was missing java-sdk :)

harmin-parra avatar Dec 12 '16 16:12 harmin-parra

I tried adding C:\Windows\System32 in my PATH and also my jdk is there in the PATH as well.. but still I am getting the same error when I execute the command C:\Users\neejaga>webdriver-manager start events.js:160 throw er; // Unhandled 'error' event ^

Error: connect ETIMEDOUT 172.217.23.176:443 at Object.exports._errnoException (util.js:1020:11) at exports._exceptionWithHostPort (util.js:1043:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1086:14)

shrikantbiradar3449 avatar Sep 13 '17 09:09 shrikantbiradar3449

W/start - Selenium Standalone server encountered an error: Error: spawn cmd ENOENT

faissrizz avatar Sep 21 '17 09:09 faissrizz

This issue got resolved by setting the System Variables. SET PATH=C:\Windows\System32

Also set the environment variables Path to JDK

adubbaka2017 avatar Oct 18 '17 10:10 adubbaka2017

Thank you

On Oct 18, 2017 4:22 PM, "adubbaka2017" [email protected] wrote:

This issue got resolved by setting the System Variables. SET PATH=C:\Windows\System32

Also set the environment variables Path to JDK

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/angular/protractor/issues/1067#issuecomment-337550780, or mute the thread https://github.com/notifications/unsubscribe-auth/AcCkYT68WKUMNFqzupzYpK3cAzx6tC1kks5stdiLgaJpZM4CMg7v .

faissrizz avatar Oct 18 '17 10:10 faissrizz