-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Can't start global (or linked) npm module on Windows #2037
Comments
@hugomallet Can you try on the lastest version of pm2 ? This should be fixed since then :
|
@vmarchaud i still have the same error (pm2 v2.0.1). |
@hugomallet do you have a sample code to reproduce this ? |
yes @vmarchaud, i have create a gist. |
@hugomallet Will look into this when i can access my windows setup, will keep you up to date with the issue :) |
Looked into it, able to reproduce your problem, but i cant see any solution except go into your module folder and start it directly with |
Same error when I start
|
@yangg Can you try to start a app script like this one ? (dont sure its working, dont have any gulp project to test ) |
@vmarchaud still not work, and no log files output. |
@yangg Will try asap |
Hello, Just to mention, I have this issue too, using the programmatic API and stand alone version. http://stackoverflow.com/questions/40481215/failing-to-use-pm2-on-windows Just in case it helps solving the problem. |
I'm in with docker and the same issue. |
I suddenly got this issue also in Windows 10. Currently running pm2 2.4.2, but same issue with previous versions:
The error goes away if I switch from fork to cluster mode. |
Came across this problem today. Message is a bit different, but it's a npm linked execution too. 😭
|
For everyone finding this issue, we don't plan to fix this because we have no idea how to so. |
Thanks for the info @vmarchaud ! |
@eisbehr- Check the content of the issue, @hugomallet posted a fix but it remove the IPC communication so some feature doesn't work. |
Hello,
Config:
Windows 7 / 10
PM2 1.0.2
Node 4.4.0 / 5.9.0
On Windows,
when starting a linked npm "bin" with:
the following error is thrown:
The issue seems to come from the chosen interpreter (node). The file which is executed in node is the generated .CMD file.
So we tried to change the script with:
/c option is not correctly interpreted so we decided to try directly in the pm2 forkMode.js file:
At this point we got the following error:
Error: EBADF: bad file descriptor, uv_pipe_open at Error (native) at Object.exports._forkChild (child_process.js:61:5) at Function.startup.processChannel (node.js:856:10) at startup (node.js:45:15) at node.js:980:3 child_process.js:61 p.open(fd);
Removing 'ipc' on fd 3 solves the problem.
Any idea to fix this?
The text was updated successfully, but these errors were encountered: