Skip to content

Instantly share code, notes, and snippets.

@practicalli-johnny
Created May 26, 2014 17:11
Show Gist options
  • Save practicalli-johnny/a5ed76dfab6281e76144 to your computer and use it in GitHub Desktop.
Save practicalli-johnny/a5ed76dfab6281e76144 to your computer and use it in GitHub Desktop.
adding nodejs to system path in Ubuntu bash .profile
# 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