Created
October 31, 2015 03:40
-
-
Save JohnKim/77cba1c6564a0a5a8a3e to your computer and use it in GitHub Desktop.
change the global module directory on Ubuntu for NPM
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
mkdir ~/npm-global-modules && npm config set prefix '~/npm-global-modules' && echo "export PATH=~/npm-global-modules/bin:\$PATH" >> ~/.profile && source ~/.profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment