Skip to content

Instantly share code, notes, and snippets.

@elleryq
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elleryq/36728e2ae9c05e0c32c7 to your computer and use it in GitHub Desktop.
Save elleryq/36728e2ae9c05e0c32c7 to your computer and use it in GitHub Desktop.
nodejs/npm setup. HOME=/home/user
prefix = /home/user/.local
root = /home/user/.local/lib/node_modules
binroot = /home/user/.local/bin
manroot = /home/user/.local/share/man
# You should put these lines in your ~/.zshrc or ~/.profile or ~/.bashrc
# HOME=/home/user
# make sure ~/.local/bin is in your PATH
export PATH="$HOME/.local/bin:$HOME/bin:$PATH"
export LOCAL_PATH="$HOME/.local"
export MANPATH="$LOCAL_PATH/share/man:$MANPATH"
export NODE_PATH="$LOCAL_PATH/lib/node_modules:$NODE_PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment