Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experienced Error: spawn ENOENT on Windows 8 Node v0.10.18 #187

Closed
ettysekhon opened this issue Oct 27, 2013 · 9 comments
Closed

Experienced Error: spawn ENOENT on Windows 8 Node v0.10.18 #187

ettysekhon opened this issue Oct 27, 2013 · 9 comments

Comments

@ettysekhon
Copy link

I created some tests and they worked fine on my mac. On my Windows 8 machine it generated an error spawn child ENOENT error. This is because java was not installed on the machine (which is required by selenium standalone) and there was no system path environment variable to the java bin directory. I installed java and added system path environment variable to the java bin directory which resolved the issue. Could be worth adding this in the readme.

@juliemr
Copy link
Member

juliemr commented Dec 6, 2013

Fixed with webdriver-manager

@juliemr juliemr closed this as completed Dec 6, 2013
@mgol
Copy link
Member

mgol commented Feb 10, 2014

I seem to have the same problem:

Running "protractor:ieDev" (protractor) task
Starting selenium standalone server...

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn ENOENT
    at errnoException (child_process.js:988:11)
    at Process.ChildProcess._handle.onexit (child_process.js:779:34)
>>
Fatal error: protractor exited with code: 8

The protractor:ieDev task defers to the config file:

exports.config = {
    capabilities: {
        'browserName': 'internet explorer',
    }
    specs: ['test/e2e/spec/**/*.defs.js'],
    allScriptsTimeout: 60000,
    jasmineNodeOpts: {
        defaultTimeoutInterval: 60000,
    },
    baseUrl: 'http://localhost:8500',
    rootElement: 'html',

    onPrepare: function onPrepare() {
        var disableNgAnimate = function () {
            angular.module('disableNgAnimate', []).run(function ($animate) {
                $animate.enabled(false);
            });
        };
        browser.addMockModule('disableNgAnimate', disableNgAnimate);
    },

    params: {
        settings: require('./app/settings'),
    },
};

I tried on Windows 7 64-bit. Everything was run using Git-Bash.

@la-yumba
Copy link

same issue, (I'm also using Windows 7 64-bit and Git-Bash)

$ protractor test/e2e/protractor.conf.js
Starting selenium standalone server...

events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:1001:11)
at Process.ChildProcess._handle.onexit (child_process.js:792:34)

@warrensearle
Copy link

I encountered this issue too when running protractor on a fresh install of angular-seed. The solution in my case was:

  1. In protractor-conf.js include the line chromeOnly: true,
  2. In scenarios.js include the 'app' path in the browser.get() calls. ie browser.get('app/index.html'); instead of browser.get('index.html');
    Hope this helps :-)

@nishanperera
Copy link

Thanks @warrensearle chromeOnly: true, fixed the issue. But not sure why I need it.

@yesobo
Copy link

yesobo commented Feb 7, 2015

chromeOnly:true was the solution for me as well, thangs @warrensearle

@iwarner
Copy link

iwarner commented May 8, 2015

Ditto to the last message I still get this issue

@nmehta6
Copy link

nmehta6 commented May 15, 2015

I am getting this error as well. I tested on OSX with the same config and works fine. I am trying to target phantomjs.

@robertpateii
Copy link

chromeOnly didn't work for me either. I had to add the java bin directory to my path for it to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants