-
-
Notifications
You must be signed in to change notification settings - Fork 244
Cannot run multiple tasks that use npm-run-all #24
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
Comments
Thank you for this issue. Hmm, I have never seen hanging problems caused by nested |
Thanks for the fast reply. You can check out this issue in the following app - https://github.com/lostm1nd/WebDevolopment/tree/master/Pizzeria-ES2015 |
Mine is:
Edit: Thanks, |
Okey, I can reproduce it on MINGW64! |
Hmmm, it's very strange. // ...
console.log("main 1")
let stdin;
try { stdin = process.stdin; } finally { console.log("main 1.5") }
console.log("main 2")
// ...
|
I typed Enter key once while the program is stopping, then it continues.... 😕 |
These three lines of code work for me as expected. It does not hang: node index.js
1
1.5
2 Edit: Just updated node to v5.7.1 and the code works again. |
Ah, sorry, I talked about this line. |
This is a small repro code. I execute the following command on Git Bash for Windows, then the program will stop at
// test.js
"use strict";
const name = process.argv[2] || "parent";
console.log("before stdin:", name);
process.stdin;
console.log("after stdin:", name);
if (process.argv[2] !== "child") {
require("child_process").spawn(
process.argv[0],
[process.argv[1], "child"],
{stdio: "inherit"}
);
} |
I reported an issue: nodejs/node#5620 Also, I got the idea of a workaround. |
Done. @lostm1nd Thank you for your help! |
@mysticatea Thank you for the time invested in the issue! |
Hello,
I am trying to slim down my build script with npm-run-all. What I really want to use is the pattern matching for running tasks which saves a lot of repeating npm runs.
The thing I am having trouble with is the following scenario:
When I run 'npm run copy' everything works okay but trying to run 'npm run build' and the execution hangs on the copy task.
The text was updated successfully, but these errors were encountered: