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
Use of --dev deprecated for npm #1983
Comments
it's a break either way to change it -- since old npm doesn't support the new flag the unfortunate thing is that's the command that was recommended by the npm team so... |
What about selecting the flag based on npm version, could that be done here? If so I could look up the version that --include=dev was added. |
good luck parsing npm's version and doing anything reasonable with it 😆 . I don't think that's a solution which gives long term stability |
did some research on this, and it looks like we can't replace the code we have for this until at least npm 6.x is no longer supported. which would be the EOL of node 14 2023-04-30 |
@asottile And here we are. |
I'm seeing this warning sometimes (output seems to be hidden unless the install fails):
Which seems to be because of this:
pre-commit/pre_commit/languages/node.py
Line 104 in fe436f1
The problem with this command was that it installed dependencies recursively, rendering them useless (AFAICT, not a node expert). The developers decided it was only a footgun in npm/npm#5554 (comment) and deprecated in npm/npm#6200.
The text was updated successfully, but these errors were encountered: