Reputation: 1232
Subject kind of says it all. Using OSX Yosemite, tried updating webdriver, chromedriver and PhantomJS, getting this error:
[15:41:30] Starting 'inject'...
[15:41:30] gulp-inject 1 files into index.html.
[15:41:30] gulp-inject 3 files into index.html.
[15:41:30] Finished 'inject' after 84 ms
[15:41:30] Starting 'serve:e2e'...
[15:41:30] Finished 'serve:e2e' after 17 ms
[15:41:30] Starting 'protractor:src'...
Starting selenium standalone server...
[launcher] Running 1 instances of WebDriver
[launcher] Process exited with error code 1
/Users/jbender/Documents/Github/PTest/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/async/nexttick.js:39
goog.global.setTimeout(function() { throw exception; }, 0);
^
Error: spawn EACCES
at exports._errnoException (util.js:746:11)
at ChildProcess.spawn (child_process.js:1162:11)
at Object.exports.spawn (child_process.js:995:9)
at module.exports (/Users/jbender/Documents/Github/PTest/node_modules/protractor/node_modules/selenium-webdriver/io/exec.js:109:27)
at /Users/jbender/Documents/Github/PTest/node_modules/protractor/node_modules/selenium-webdriver/remote/index.js:170:21
at promise.ControlFlow.runInFrame_ (/Users/jbender/Documents/Github/PTest/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1877:20)
at promise.Callback_.goog.defineClass.notify (/Users/jbender/Documents/Github/PTest/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:2464:25)
at promise.Promise.notify_ (/Users/jbender/Documents/Github/PTest/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:563:12)
at Array.forEach (native)
at Object.goog.array.forEach (/Users/jbender/Documents/Github/PTest/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/array/array.js:203:43)
/Users/jbender/Documents/Github/PTest/gulp/e2e-tests.js:23
throw err;
ANY help would be appreciated!
Thanks, James
UPDATE: I added more of the error message above.
Upvotes: 0
Views: 420
Reputation: 1232
Ugh! Ok, turns out my installation of Java was corrupted somehow. I noticed this when I went to start up WebStorm and it complained. Reinstalled and it's fine now. Thanks for the help!
Upvotes: 0
Reputation: 28737
The Error: spawn EACCES
error means that the file is not executable. I am assuming that you are on a Mac based on the file path, so something like this should fix your problem:
cd /Users/jbender/Documents/Github/PTest/
chmod -R +x *
Of course, this probably isn't what you want to do since this will make all your files executable. It's probably one of the files in your node_modules directory that needs to be executable. Without more information, I can't tell you which one. You can probably figure that out on your own.
Upvotes: 1