Skip to content
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

Problem with PM2 on Windows #103

Closed
jorgeperegrina opened this issue Jul 7, 2018 · 1 comment
Closed

Problem with PM2 on Windows #103

jorgeperegrina opened this issue Jul 7, 2018 · 1 comment

Comments

@jorgeperegrina
Copy link

I have a web service that I keep active with PM2 working on a Windows computer. Every time PM2 restarts this service due to a file update, multiple nodejs windows open when I include watchr in a single file. This does not happen using nodemon or the npm start command. I have already tested this problem by commenting on the lines where I call watchr and saving the file for PM2 to do its job, and no window opens.

This is a portion of my code:

const path = require('path'), watchr = require('watchr');
let update = false;
watchr.open(path.join(__dirname, '../views/'), () => { update = true; }, err => { });
@balupton
Copy link
Member

balupton commented Nov 24, 2023

Seems a limitation of Node.js. Use watchman #91

Could also just be a windows support issue of watchr #341

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants