-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 update changing package.json #3044
Comments
Related to #708? |
@mattpen can't seem to reproduce; Can you try updating to latest ( |
@darcyclarke - I just upgraded and I still get the same results (npm update inserts trailing newline into package.json) with v7.9.0.
|
Using node 14 or 16 this problem does not occur. |
#4223 cleans up the usage of Closing this issue since the original problem should be fixed in |
Current Behavior:
npm update
will make changes to package.json, even if--save=false
or--no-save
is present. This includes adding a newline to the end of package.json even if no other changes were present.Expected Behavior:
If save is set to false,
npm update
should not modify package.jsonSteps To Reproduce:
I see this same behavior with
npm config set save false
,npm update --no-save
, andnpm update --save=false
.Environment:
The text was updated successfully, but these errors were encountered: