-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
NPM 7 fails with an empty script. #2171
Comments
What does npm 6 do here? |
Doesn’t fails. |
Workaround is to add a space:
|
this is technically a bug, but i'm curious about the use case for having empty scripts and expecting to be able to run them.. is the idea to make sure that the command always works? if so: |
Seems like any script that trims to the empty string should be treated as an error case, distinct from missing scripts - I’m curious about the use case for an empty script. |
my guess was a build system of some sort that runs |
Not against it but the error message should be fixed. |
fair enough 👍 pull request to fix it is up and will hopefully land in the next release |
Thanks. |
this was resolved in 7.0.12 |
Current Behavior:
NPM 7 fails with an empty script.
Expected Behavior:
Not to fail.
Steps To Reproduce:
package.json:
Command
Result:
Environment:
The text was updated successfully, but these errors were encountered: