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

nodemon spawns new windows on Windows 10 #2099

Closed
lerarosalene opened this issue Feb 1, 2023 · 3 comments
Closed

nodemon spawns new windows on Windows 10 #2099

lerarosalene opened this issue Feb 1, 2023 · 3 comments
Labels
stale no activity for 2 weeks

Comments

@lerarosalene
Copy link
Contributor

  • Versions: node@v16.15.1, win32@10.0.19045
  • nodemon -v: 2.0.20
  • Operating system/terminal environment (powershell, gitshell, etc): Windows 10, cmd
  • Using Docker? What image: no
  • Command you ran: nodemon --watch webpack.config.js <path-to-webpack-dev-server-bin> via pm2 daemon

More info:

If pm2 is spawned via windows console, and if it starts nodemon binary as it's app (with ecosystem file configured as such)

const wdsPackage = require('webpack-dev-server/package.json');
const wdsBin = require.resolve(`webpack-dev-server/${wdsPackage.bin}`);

const nodemonPkg = require('nodemon/package.json');
const nodemonBin = require.resolve(`nodemon/${nodemonPkg.bin.nodemon ?? nodemonPkg.bin}`);

module.exports = {
  apps : [{
    script: nodemonBin,
    name: 'my-cool-app-name',
    cwd: '.',
    args: `--watch webpack.config.js --watch package.json "${wdsBin}"`
  }],
};

it then spawns window with shell of webpack-dev-server.

Expected behaviour

No windows spawned

Actual behaviour

image

Steps to reproduce

Install pm2 globally, init project, install nodemon there, make ecosystem.config.js with given config (you can replace webpack-dev-server with any node script which runs indefinetely). Run pm2 start ecosystem.config.js and enjoy new console window.


If applicable, please append the --dump flag on your command and include the output here ensuring to remove any sensitive/personal details or tokens.

@lerarosalene
Copy link
Contributor Author

PR that should get rid of this: #2098

@github-actions
Copy link

This issue has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and @remy will (try!) to follow up.
Thank you for contributing <3

@github-actions github-actions bot added the stale no activity for 2 weeks label Feb 15, 2023
@github-actions
Copy link

Automatically closing this issue due to lack of activity

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

No branches or pull requests

1 participant