[BUG] npm update -g ds
removes all global packages and npm itself
#7731
Labels
npm update -g ds
removes all global packages and npm itself
#7731
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Title. Basically self-destructs and purges all global packages and you can't even run npm after.
As I have tested, it works with any package that is not installed, even non-existent ones.
To fix it, you need to re-install whole Node again with nvm.
Expected Behavior
Don't self-destruct and delete all global packages, when you specify package that is not installed.
Steps To Reproduce
npm update -g ds
npm -v
Environment
The text was updated successfully, but these errors were encountered: