-
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 update does not retain specified dependency ranges in package.json #7889
Comments
@rosstroha I checked with npm update and it does not remove the version range. npm update intended to update the package to the latest version allowed by the version range in the package.json. Note: |
Not an issue, it is working as intended. |
I must be missing something. |
Additionally I've removed Here's my full config
|
I think this is related to npm/rfcs#547. |
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
npm update package --save
removes some version range symbols (I have only tested~
and^
) frompackage.json
Expected Behavior
It doesn't remove them.
Steps To Reproduce
npm init
package.json
contents:npm update emoji-poop --save
1.2.1
instead of~1.2.1
Environment
The text was updated successfully, but these errors were encountered: