Created
August 2, 2023 19:01
-
-
Save bazuzu931/6d7837b6df63f768491121e7abb8e832 to your computer and use it in GitHub Desktop.
delete globally all node modules
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