-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Labels
Bugthing that needs fixingthing that needs fixingPriority 1high priority issuehigh priority issueRelease 7.xwork is associated with a specific npm 7 releasework is associated with a specific npm 7 release
Description
Current Behavior:
Attempting to update a package with a tag using the update
command globally causes ALL global packages to be removed.
Expected Behavior:
Packages should not be removed when updating global packages.
Steps To Reproduce:
npm i -g typescript nodemon @angular/cli # Install some global packages
npm ls -g --depth=0 # This shows the 3 installed packages
npm update -g @angular/cli@latest # Attempt to update one of the packages with a @latest tag
# Oh no! removed 620 packages
npm ls -g --depth=0 # Shows `-- (empty)
Environment:
- OS: Windows 10 20H2
- Node: 15.9.0
- npm: 7.11.2
Additional Info
This only happens on the global scope
gabrieldejesus, brunos3d, luckman212, lexxwork, nesbocaj and 5 more
Metadata
Metadata
Assignees
Labels
Bugthing that needs fixingthing that needs fixingPriority 1high priority issuehigh priority issueRelease 7.xwork is associated with a specific npm 7 releasework is associated with a specific npm 7 release