GithubHelp home page GithubHelp logo

Comments (40)

lrkwz avatar lrkwz commented on May 28, 2024 1

This solved for me:

 npm rm --global gulp
 sudo npm rm --global gulp
 sudo npm install --global gulp-cli

from gulp-angular-protractor.

rochejul avatar rochejul commented on May 28, 2024

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.

sharvit avatar sharvit commented on May 28, 2024

i am using osx 10.11.13

i tried to export JAVA_PATH=...
i tried it with v7 and v8

from gulp-angular-protractor.

sharvit avatar sharvit commented on May 28, 2024

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.

rochejul avatar rochejul commented on May 28, 2024

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.

sharvit avatar sharvit commented on May 28, 2024

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.

rochejul avatar rochejul commented on May 28, 2024

Maybe

Can ou test it ?

Many thanks

from gulp-angular-protractor.

sharvit avatar sharvit commented on May 28, 2024

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.

rochejul avatar rochejul commented on May 28, 2024

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.

gruppjo avatar gruppjo commented on May 28, 2024

I get the same error. How do I run in verbose mode?

from gulp-angular-protractor.

rochejul avatar rochejul commented on May 28, 2024

Hi

you have to simply add "--verbose" at the end of the gulp command

from gulp-angular-protractor.

rochejul avatar rochejul commented on May 28, 2024

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.

AaronBuxbaum avatar AaronBuxbaum commented on May 28, 2024

+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.

rochejul avatar rochejul commented on May 28, 2024

Hi

When you downgade to 0.0.6, it works fine ?

Many thanks for your feebback

Cheers

from gulp-angular-protractor.

AaronBuxbaum avatar AaronBuxbaum commented on May 28, 2024

@rochejul Yup! This bug was introduced in 0.0.7.

from gulp-angular-protractor.

rochejul avatar rochejul commented on May 28, 2024

It works fine on my ubuntu and windows stations.

What is your configuration ?

from gulp-angular-protractor.

AaronBuxbaum avatar AaronBuxbaum commented on May 28, 2024

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.

rochejul avatar rochejul commented on May 28, 2024

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.

AaronBuxbaum avatar AaronBuxbaum commented on May 28, 2024

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.

rochejul avatar rochejul commented on May 28, 2024

What is the version of Java ?

Do you use at least JDK 1.7 ?

from gulp-angular-protractor.

rochejul avatar rochejul commented on May 28, 2024

Can you try out the 0.1.0 version please ?

Many thanks

from gulp-angular-protractor.

AaronBuxbaum avatar AaronBuxbaum commented on May 28, 2024

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.

elgervb avatar elgervb commented on May 28, 2024

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.

rochejul avatar rochejul commented on May 28, 2024

@elgervb Can you check if the version 0.1.0 works please ?

Many thanks

from gulp-angular-protractor.

elgervb avatar elgervb commented on May 28, 2024

@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.

rochejul avatar rochejul commented on May 28, 2024

Weird the publication seems to have failed

I will publish as soon as possible

Cheers

from gulp-angular-protractor.

elgervb avatar elgervb commented on May 28, 2024

Tnx @rochejul! I'll update when publication succeeded

from gulp-angular-protractor.

rochejul avatar rochejul commented on May 28, 2024

The 0.1.1 version was published

Many thanks, I closed the issue

from gulp-angular-protractor.

dakolech avatar dakolech commented on May 28, 2024

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.

rochejul avatar rochejul commented on May 28, 2024

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.

AaronBuxbaum avatar AaronBuxbaum commented on May 28, 2024

I still get the same error in my Sauce build as well.

from gulp-angular-protractor.

dakolech avatar dakolech commented on May 28, 2024

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.

rochejul avatar rochejul commented on May 28, 2024

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.

dakolech avatar dakolech commented on May 28, 2024

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.

rochejul avatar rochejul commented on May 28, 2024

You can run it anywhere : this is a nodejs test
Cheers

from gulp-angular-protractor.

dakolech avatar dakolech commented on May 28, 2024
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.

pgom avatar pgom commented on May 28, 2024

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.

red2678 avatar red2678 commented on May 28, 2024

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.

jmmclean avatar jmmclean commented on May 28, 2024

This issue exists with v0.3.0. Downgrading to version 0.0.6 worked for me.

from gulp-angular-protractor.

maikdiepenbroek avatar maikdiepenbroek commented on May 28, 2024

Same here!

from gulp-angular-protractor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.