Created
September 28, 2023 20:19
-
-
Save danilogco/0d91ac316251626bbc9fa177843c0fa2 to your computer and use it in GitHub Desktop.
Delete all node installed global libraries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm ls -gp --depth=0 | awk -F/ '/node_modules/ && !/\/npm$/ {print $NF}' | xargs npm -g rm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment