asdf-vm / asdf-nodejs

Node.js plugin for asdf version manager
https://github.com/asdf-vm/asdf
MIT License
908 stars 144 forks source link

empty output from npm commands #401

Open mcandre opened 2 months ago

mcandre commented 2 months ago

When I try common Internet shell snippets to quickly delete all my (global) NPM packages, then npm becomes corrupted. Commands like npm install [-g] and npm ls [-g] no longer produce any output, though they do quietly emit non-zero exit codes.

https://stackoverflow.com/questions/9283472/command-to-remove-all-npm-modules-globally

As a workaround, I am using asdf uninstall nodejs <version>, asdf install (from .tool-versions) to fix the corruption.