-
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
[BUG] npm --save-dev does not infer --save #5280
Comments
You set |
That might be it. |
I think it's reasonable to assume it would, and I think it's arguable that it's a bug in npm that |
…t overridden by npm config
PR updated to resolve this issue: #7233 |
…t overridden by npm config
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
When I run
npm install --save-dev <package-name>
package.json is not modified; nothing is added todevDependencies
.Expected Behavior
I would expect that a command like
npm install --save-dev <package-name>
would install that package in the current directory and add the package information in package.json's devDepencies object.Steps To Reproduce
devDependencies
does not exist as expected.Environment
The text was updated successfully, but these errors were encountered: