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
{{ message }}
This repository was archived by the owner on Aug 11, 2022. It is now read-only.
When I run npm install, it is not installing the latest version of dependencies that use the ~ in the version. When I run npm update, it is updating the version in the package.json for dependencies that use ~ to ^.
How can the CLI team reproduce the problem?
npm init a new directory
Add "@angular/common": "4.2.0" to the package.json as a dependency
npm i
Change the dependency version to "~4.2.0"
npm i
Observe the latest patch version of the dependency was not installed. The version in the package-lock.json was respected. This is inconsistent with how the package-lock.json is treated when using version numbers with a ^.
npm update
Observe the dependency version number was updated to ^4.2.6. npm update should not change the ~ to ^.