-
-
Save evanhutomo/11c6d62033d4a31ecd1f to your computer and use it in GitHub Desktop.
npm useful command (for reminder purpose)
This file contains hidden or 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
#print list of global installed libraries | |
npm list -g | |
#write .bash_profile with NODE_PATH (npm root -g) -> point to node_modules | |
echo 'export NODE_PATH="'$(npm root -g)'"' >> ~/.bash_profile && . ~/.bash_profile | |
#write .bash_profile with NODE_PATH GLOBAL | |
echo 'export NODE_PATH="'$(npm bin -g)'"' >> ~/.bash_profile && . ~/.bash_profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment