-
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
How to get rid of annoying popups in Windows 10? #2182
Comments
Would it be an issue because of the way we spawn processes?
I don't know if I have to customize something on this code segments, |
|
interesting, maybe @ThisIsMac47 will have a look at this on the next weeks |
After testing, the detached option doesnt hide popups on Windows, i think that nodejs spawn a shell to spawn the process. |
Okay so :
If you get any popup apart of cluster mode, respond to this issue to report it, i will investigate for each one. |
Because we can't get |
They use the function fork, we can use |
Yes ok so if that's the main reason, the only solution is to port cluster into pm2 instead of using the nodejs cluster. |
I wasnt able to reproduce with a simple cluster implementation, this might coming from the fact that we are a spawning a child from a forked child or something like this. |
Is this issue fixed or any workaround available? I have faced the same issue when using cluster mode with watch option. The node window opens multiple time when saving the file. |
@ajithr No, like i said, the problem come from nodeJs implementation of the cluster mode. I suggest you to develop in fork mode. |
For me what has been working quite well is to use |
@gustavohenke I followed your instructions, but it did not work for me. I am using pm2 2.0.19 on Windows 8.1 and I still get a popup window everytime I use |
@centigrade-thomas-becker The fact a popup is spawning when you call The problem of #2182 is that in cluster mode, we can't control how the process are spawn, so we can't add this options to hide the popup under windows. |
@centigrade-thomas-becker you should try to use |
I wanted to share what I did to overcome the popup. |
Do we have any updates on this for a proper implementation that will patch this issue? I use PM2 when locally developing. It's becoming an issue to run |
Try this,
Hope it works! |
I use the process json file to launch my pm2 instances so I do not believe
that will work for me.
…On Fri, 31 Mar 2017 at 1:07 pm, Raghav Manikandan ***@***.***> wrote:
Try this,
1. npm start your project as usual (pop-up's keep on coming up)
2. Stop the project (Ctrl-C)
3. pm2 delete <project-name>
4. Again npm start (this time it stops popping up)
Hope it works!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2182 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AQFo-gSTsM1ff6b76yV4Qj20hfUV-uF4ks5rrOyHgaJpZM4Ijsqx>
.
|
Any fix to this? Just asking 😄 |
@mswaminath Can you please post your pm2 config, and how you spawn your child processes? |
Any permanent solution for this ?? |
Confirmed this resolved the issue for me too. |
I'm sorry, forever did indeed have the problem too. My bad. I used node-hide-console-window to work around the problem because v4.4 did not seem to help. |
is this issue abandoned? |
piece of shit of a repo when u cant fix simple issue like this that EVERYONE is experiencing |
fkin monkey developers |
Perfect! |
Thanks! This worked just fine for me.. struggled with this issue for multiple months now. |
Interesting, I wonder why it works for some. |
Please any update on this? |
What's the general consensus on how to avoid this issue on Windows ? Node: v18.17.0 Again I don't mean to be rude but some of use have no choice when it comes to pm2. There are already large enterprise projects that depend on it I can't just go around ecosystem.config.js files that are hundreds of lines. We all know Windows has it's problems and that most of the time as a dev you have to work around its shorcomings but after 7 years this issue should have a statement or solution. |
Will all pm2 commands still work ? |
There's no consensus. 4.4 works for some, not for others, node-hide-console-window is an option when it doesn't. I haven't tried noc. I can only conclude that the maintainers don't care for windows, I suppose. |
Sorry, how do I make use of node-hide-console-window non-programatically, when it comes to pm2 I only have to deal with a ecosystem.js with a lot of envs. |
this did it for me. |
For what it's worth, I eventually made it work with pm2-installer. |
I'm using pm2 v 5.3.0 It keep popup powershell window on every socket.io emit the message in node app. (popup and closed but very annoying because I can't focus on other window while it pops up.) Is this related to this issue? |
PSA, This window will keep popping up if your app has a crash or problem, I used nodemon to determine what was causing the crash (and the window popup), fixed it and pm2 stopped the unexpected behaviour |
I am using version 5.3.0 and I can confirm that the problem continues to occur when running on cluster mode. By any chance do you know if there is a solution for this on Windows? |
I have to moved to use NSSM. |
You can run both source and pm2 in git bash. Not in cmd or powershell |
A python cmd window always popups in Windows 10 when I do the pm2 start ecosystem.config.js, how to avoid it
|
As @jermitval pointed out the last working version was 4.4 Change Vizion to 0.2.13 and the problem disappears Looks like this Vizion package needs a fix because 0.2.13 is an old version with some vulnerabilities. But the popup is so extremely annoying esp focus stealing when editing files with watches on them that for now I'd rather use this old version. Solution 2 Instead of downgrading vizion you can disable it altogether(whatever it does) and the popups will stop
or in command line |
In my case I have to flush terminal every interval time, so every time it flushes it keep popups annoying terminal at same interval time as it flush, my solutions is just removing that line from my source code. This is my testcase in Python
Is this related? |
@DVLP setting |
@matys1 , thank you! Adding |
I have disabled vision by default in the prochain release of PM2,
Or with bun:
Thanks |
How do I disable the popup windows that pm2 generates in Windows 10 when starting, restarting or reloading a Node.js app? From the perspective of rapid server-side development, this is very annoying...
The text was updated successfully, but these errors were encountered: