Issue when using npm-run-all ?

Hello everyone.

I'm working with WS2016.3 on an Angular 2 project. I've configured why to be the default npm package (v0.17.2 - I also have node 6.8.0). I used a npm package named `npm-run-all` which gives me the ability to run multiple scripts at once.

Inside a terminal, this command from my package.json works well 

`yarn run e2e // call : npm run sass && npm-run-all -p -r e2e:server e2e:only`

But when I call the command from the nom windows in webstorm, it always freezes when executing npm-run-all. I've tried with differents command using npm-run-all and the same thing happens.

 

Should I configure something ?

0
6 comments

Does it hang on this exact command, or on any call to `npm-run-all `? Please try running exactly the same command in terminal (you can click on `npm run-script <command>` in Run console to see what command is executed - it should be `path/to/node path/to/npm/cli/npm-cli.js <args>`) - what is the result?

0
Avatar
Permanently deleted user

Same issue on any call to npm-run-all.

By executing the exact same command in the webstorm's terminal I got an error. npm-run-all is not recognized. Same result on another terminal (cmder). But this won't append when i execute `npm run e2e` (in cmder & cmd only) which is just an alias for `npm run sass && npm-run-all -p -r e2e:server e2e:only`.

I think this is because I haven't installed `npm-run-all` globally. 

So I've tried once again after `npm i -g npm-run-all` but I got the same result.

0
Avatar
Permanently deleted user

I've also tried to execute the command after restarting webstorm after installing npm-run-all globally.

0

haven't got what you mean, sorry. So, the full command fails in both WebStorm and system terminal, right? but 'alias' command works in system terminal? Can you attach screenshots that show commands being executed and the results?

0
Avatar
Permanently deleted user

Here is a part of my `package.json` :

"e2e": "npm run sass && npm-run-all -p -r e2e:server e2e:only",

In webstorm :

  • call the command via the npm window : freeze (at `npm-run-all`)
  • call `npm run e2e` : works
  • running via the terminal `npm run sass && npm-run-all -p -r e2e:server e2e:only` : ERROR : `npm-run-all` is not recognized

 

Via another terminal (cmder) :

  • call `npm run e2e` : works
  • call `npm run sass && npm-run-all -p -r e2e:server e2e:only` : works

 

Screenshots :

I'm stucked here


 

0

thanks for update, reproduced. Problem seems to be caused by runnerw.exe - utility that runs external processes on Windows; logged as https://youtrack.jetbrains.com/issue/WEB-24248, please follow it for updates

0

Please sign in to leave a comment.