$ npm ls -gp --depth=0 | awk -F/ '/node_modules/ && !/\/npm$/ {print $NF}' | xargs npm -g rm
Created
November 7, 2019 07:27
-
-
Save icarrr/8e7c78870b3b7a4a98caf25270b4963f to your computer and use it in GitHub Desktop.
remove all npm modules globally
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment