Created
November 3, 2020 15:53
-
-
Save mearns/787d60fb62893cb8043b06b38e9ebf0e to your computer and use it in GitHub Desktop.
View Globally Installed Npm Binaries
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
( | |
for f in $( ls -l $( dirname $( which node ) ) | grep -- '->' | sed -e 's/.*-> \(..*\)/\1/' ); | |
do dirname $f; | |
done | |
) | sort -u | sed -e 's/\.\.\/lib\/node_modules\///' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment