Comments (40)
This solved for me:
npm rm --global gulp
sudo npm rm --global gulp
sudo npm install --global gulp-cli
from gulp-angular-protractor.
Hi
Are you on a windows platform ? If so, I've got a similar issue: http://stackoverflow.com/questions/28624686/get-spawn-cmd-enoent-when-try-to-build-cordova-application-event-js85
We have this kind of error when the "c:/windows/system32' is not into the PATH.
This is a well knowed issue on nodejs windows version, and it occurs when we specify the "cwd" option for child_process.exec or child_process.spwan functions
Can you check that please ?
Many thanks
from gulp-angular-protractor.
i am using osx 10.11.13
i tried to export JAVA_PATH=...
i tried it with v7 and v8
from gulp-angular-protractor.
it is also weird that v0.0.7 donloading selenium-server-standalone-2.47.1.jar
and v0.0.6 downloading selenium-server-standalone-2.48.2.jar
Thanks :)
from gulp-angular-protractor.
Hi
Can you try to do the following command:
rm -rf ~/.npm
Plus, can you verify if you have a PATH variable ?
Many thanks
from gulp-angular-protractor.
Hi,
I tried the following:
rm -rf ~/.npm
rm -rf ~/.nvm/versions
rm -rf node_modules
testing output is still the same :(
PATH is looking good
echo $PATH
bins, npm, nvm, rvm anything their...
something about java should be their? because it is not...
Thanks
from gulp-angular-protractor.
Maybe
Can ou test it ?
Many thanks
from gulp-angular-protractor.
seems that PATH should include nothing about JAVA
i found a few things about JAVA_HOME but it seems that this variable do not affect anything.
I also do not understand why it is downloading
selenium-server-standalone-2.47.1.jar
and not selenium-server-standalone-2.48.2.jar
like v0.0.6 do
from gulp-angular-protractor.
Maybe this is an evolution from gulp-protractor (we use the 1.0.0 version)
Can you run with the verbose mode ? Maybe we will have more details ?
Many thanks
from gulp-angular-protractor.
I get the same error. How do I run in verbose mode?
from gulp-angular-protractor.
Hi
you have to simply add "--verbose" at the end of the gulp command
from gulp-angular-protractor.
Hi,
Can you try to run this code onto your system and tell me what is the output ? If you have the same error, there is a problem on your system (for example, on windows, if the system32 folder is not into the PATH, we have the same issue):
'use strict';
var childProcess = require('child_process');
function _interceptLogData(data) {
var dataString = data.toString();
console.log(dataString);
}
var command = childProcess.spawn('ls', ['-la']);
command.once('close', function (err) {
if (err) {
console.error(err);
} else {
console.log('Finished !');
}
});
command.stderr.on('data', _interceptLogData);
command.stdout.on('data', _interceptLogData);
Cheers
from gulp-angular-protractor.
+1 on this issue. I'm running my tests fine on my windows machine, but I get the error when I run it over Sauce Labs.
from gulp-angular-protractor.
Hi
When you downgade to 0.0.6, it works fine ?
Many thanks for your feebback
Cheers
from gulp-angular-protractor.
@rochejul Yup! This bug was introduced in 0.0.7.
from gulp-angular-protractor.
It works fine on my ubuntu and windows stations.
What is your configuration ?
from gulp-angular-protractor.
I get this bug when I'm running e2e tests on my deployment pipeline (TravisCI -> Sauce Labs), so I'm not really aware of the configurations. It might be worth creating your own instances of these and trying it yourself to see -- my guess is that your machine might have something installed that aren't on those machines.
All I do know is that Sauce runs on Linux and Chrome 48.
from gulp-angular-protractor.
Can you run the previous code on travis/ saucelabs please ?
If an error is raised, that means this is probably a NodeJs problem.
Many thanks
from gulp-angular-protractor.
0.0.7 does not work; 0.0.6 works fine. I get the same spawn webdriver-manager ENOENT
error as OP.
from gulp-angular-protractor.
What is the version of Java ?
Do you use at least JDK 1.7 ?
from gulp-angular-protractor.
Can you try out the 0.1.0 version please ?
Many thanks
from gulp-angular-protractor.
No difference on master (0.1.0); not sure about Java version since it's the Sauce Labs machine. I imagine it's on a relatively recent JDK, but I don't know.
from gulp-angular-protractor.
Looks like I'm having the same problem as well when using version 0.0.7.
Take a look at my Travis configuration:
https://travis-ci.org/elgervb/skeletonSPA/builds/113420806
Build system info is at the top of the log of each build job.
Java version is 1.7.0_76.
Will revert my project skeletonSPA to version 0.0.6 for now
from gulp-angular-protractor.
@elgervb Can you check if the version 0.1.0 works please ?
Many thanks
from gulp-angular-protractor.
@rochejul looks like 0.1.0 is working ;-)
Do you need to publish it on npm? Latest release on npm.com is 0.7.0...
from gulp-angular-protractor.
Weird the publication seems to have failed
I will publish as soon as possible
Cheers
from gulp-angular-protractor.
Tnx @rochejul! I'll update when publication succeeded
from gulp-angular-protractor.
The 0.1.1 version was published
Many thanks, I closed the issue
from gulp-angular-protractor.
The 0.1.1 version is not solving the issue. Same error:
Error: spawn webdriver-manager ENOENT
at exports._errnoException (util.js:874:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
at onErrorNT (internal/child_process.js:344:16)
at doNTCallback2 (node.js:441:9)
at process._tickCallback (node.js:355:17)
OS X 10.11.3
from gulp-angular-protractor.
Hi @dakolech
Have you check the java version and PATH variable ?
Can you give more details on your node, npm, java versions ?
Many thanks
from gulp-angular-protractor.
I still get the same error in my Sauce build as well.
from gulp-angular-protractor.
java version: 1.7.0_79
node: v4.3.2
npm: 2.14.12
There is a export JAVA_HOME=$(/usr/libexec/java_home)
in .zshrc.
from gulp-angular-protractor.
Can you try this script and give me the output ?
'use strict';
var childProcess = require('child_process');
function _interceptLogData(data) {
var dataString = data.toString();
console.log(dataString);
}
var command = childProcess.spawn('ls', ['-la']);
command.once('close', function (err) {
if (err) {
console.error(err);
} else {
console.log('Finished !');
}
});
command.stderr.on('data', _interceptLogData);
command.stdout.on('data', _interceptLogData);
Thanks
from gulp-angular-protractor.
where should I run it? If i run it in the main app folder, then the output is the same as ls -la.
from gulp-angular-protractor.
You can run it anywhere : this is a nodejs test
Cheers
from gulp-angular-protractor.
total 200
drwxr-xr-x 31 dako staff 1054 7 mar 16:42 .
drwxr-xr-x 27 dako staff 918 2 mar 09:55 ..
-rw-r--r--@ 1 dako staff 6148 8 lut 15:21 .DS_Store
-rw-r--r-- 1 dako staff 28 9 lut 16:08 .babelrc
-rw-r--r-- 1 dako staff 16 9 lut 16:08 .bash_profile
-rw-r--r-- 1 dako staff 16 9 lut 16:08 .bashrc
-rw-r--r-- 1 dako staff 62 9 lut 16:08 .bowerrc
-rw-r--r-- 1 dako staff 414 9 lut 16:08 .editorconfig
-rw-r--r-- 1 dako staff 858 7 mar 11:24 .eslintrc.yml
-rw-r--r-- 1 dako staff 245 2 mar 09:54 .gitignore
-rw-r--r-- 1 dako staff 1447 9 lut 16:08 .jade-lint.json
-rw-r--r-- 1 dako staff 6 7 mar 11:24 .node-version
-rw-r--r-- 1 dako staff 4644 9 lut 16:08 .scss-lint.yml
-rw-r--r-- 1 dako staff 16 9 lut 16:08 .zshrc
-rw-r--r-- 1 dako staff 527 4 mar 14:33 README.md
drwxr-xr-x 8 dako staff 272 1 mar 10:25 app
drwxr-xr-x 6 dako staff 204 9 lut 16:08 assets
-rw-r--r-- 1 dako staff 966 1 mar 10:25 bower.json
drwxr-xr-x 25 dako staff 850 23 lut 16:06 bower_components
drwxr-xr-x 3 dako staff 102 4 lut 15:54 coverage
drwxr-xr-x 8 dako staff 272 7 mar 11:24 gulp
-rw-r--r-- 1 dako staff 7478 7 mar 11:24 gulpfile.js
-rw-r--r-- 1 dako staff 2622 4 mar 14:33 karma.config.js
drwxr-xr-x 4 dako staff 136 10 lut 15:25 locales
-rw-r--r-- 1 dako staff 449 7 mar 16:42 new.js
drwxr-xr-x 73 dako staff 2482 7 mar 14:50 node_modules
-rw-r--r-- 1 dako staff 2243 7 mar 14:59 package.json
-rw-r--r-- 1 dako staff 6683 7 mar 14:36 paths.config.js
-rw-r--r-- 1 dako staff 754 4 mar 14:33 protractor.config.js
drwxr-xr-x 4 dako staff 136 9 lut 16:08 test
-rw-r--r-- 1 dako staff 508 4 mar 14:33 webpack.config.js
Finished !
from gulp-angular-protractor.
I also get the same error on both 0.0.7
and 0.1.1
version running on OSX 10.11.4 and:
- java: 1.8.0_65
- node: 5.1.0
- npm: 3.8.5
from gulp-angular-protractor.
I am still getting this error on both 0.0.7 and 0.1.1. I went back to 0.0.6 and all is well.
- java: 1.8.0_65
- node: 4.4.7
- npm: 3.10.3
from gulp-angular-protractor.
This issue exists with v0.3.0. Downgrading to version 0.0.6 worked for me.
from gulp-angular-protractor.
Same here!
from gulp-angular-protractor.
Related Issues (20)
- If the scenario get fails, the whole test suite execution get stopped HOT 5
- Update dependencies
- How to pass multiCapabilities from gulp-angular-protractor HOT 4
- Query : Is it possible to use gulp-angular-protractor with wdio and mocha HOT 3
- Gulp task hangs (never completes) with last output "gulp-angular-protractor - Webdriver standalone server will be closed" HOT 13
- Error: ECONNREFUSED connect ECONNREFUSED 127.0.0.1:48107 for gulp protractor HOT 15
- Arguments to webdriver are not being pass to the selenium server HOT 5
- Updating protractor version HOT 1
- Update engine requirement ?
- webDriver.webDriverUpdateAndStart is not a function HOT 3
- ChromeDriver unable to maximize to defined values. HOT 4
- Fails with Chrome 57 HOT 28
- Confusion about global Protractor and node_modules Protractor HOT 2
- Gulp task does not terminate when using Protractor 5 HOT 26
- Configure for Page Object pattern project HOT 12
- What the problem is "code 199"? HOT 1
- webdriver update fail on clean environment with autoStartStopServer set to false HOT 3
- teapot error on vinyl@406 HOT 8
- Update lodash version to avoid vulnerability
- Update the dependency to protractor to its latest version 6.0.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-angular-protractor.