-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
package.main with -- arguments not working when running an npm script #1810
Comments
Yeah… so, you're hitting some interesting combination of using nodemon and npm with the "stop eating" double dash thing. When you run a program (any) with the So when you run the npm command When nodemon runs with There two work arounds for this:
I might add this to the faq too actually. Finally, thank you so much for your sponsorship and support - genuinely valued. |
@remy as for the sponsorship, this need was the right opportunity to thank you, this was long overdue! |
To be complete, I should have added that I run successfully |
The solution of using Thank you @remy |
nodemon -v
:2.0.6
node -v
:12.18.2
Debian GNU/Linux
stable
npm run start:watch -- -L -opt2 -opt3
Expected behaviour
Actual behaviour
Steps to reproduce
package.json
:While the following works fine:
This is related with https://github.com/remy/nodemon/blob/master/faq.md#my-script-arguments-are-being-taken-by-nodemon, #1773 and #1758
The text was updated successfully, but these errors were encountered: