You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When updating dependencies skip any unchanged node so that we avoid
overwriting existent specs, such as exact version that should not
change between installs.
Fixes: npm#4329
When updating dependencies we need an extra check when filtering nodes
to be updated that ensures we do not override semver ranges that are
pointing to an exact version. e.g: =1.0.0, 1.0.0
Fixes: npm#4329
npm update --save
in [email protected] works differently tonpm update
in npm@6 when specifying an exact versionFor example if you run
npm install --save-exact [email protected]
Then your package.json will look like this:
"cron": "1.8.0"
if you then run on npm@6
npm update
nothing is changed
but if you then run on [email protected]
npm update --save
package.json is updated to
"cron": "^1.8.0"
and then if you run
npm update --save
again package.json is updated to"cron": "^1.8.2"
This is doubly confusing as my pinned version is lost AND I get a different behavior if I run npm update twice
Originally posted by @matthewmayer in #2704 (comment)
The text was updated successfully, but these errors were encountered: