Created
May 26, 2014 17:11
-
-
Save practicalli-johnny/a5ed76dfab6281e76144 to your computer and use it in GitHub Desktop.
adding nodejs to system path in Ubuntu bash .profile
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
# Add locally installed nodejs and node package manager to the PATH | |
# Check that the nodejs folder exists before adding | |
if [ -d "$HOME/apps/nodejs" ] ; then | |
NODEJS_HOME=$HOME/apps/nodejs/current | |
PATH="$NODEJS_HOME/bin:$PATH" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment