Skip to content

Instantly share code, notes, and snippets.

@lyndametref
Last active July 28, 2016 08:34
Show Gist options
  • Save lyndametref/ae4b9aa183ea75367a62d80d795770f6 to your computer and use it in GitHub Desktop.
Save lyndametref/ae4b9aa183ea75367a62d80d795770f6 to your computer and use it in GitHub Desktop.
NodeJS & co

Installing

sudo apt-get install -y nodejs

set the global install path

The global install put the files in ~/share/npm-global/

npm config set prefix ~/share/npm-global/

add exec path to PATH

add to .bashrc to add ~/share/npm-global/:

export NODE_PATH=/usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript:~/share/npm-global/lib/node_modules
export PATH=~/share/npm-global/bin:~/.local/bin:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment