Skip to content

Instantly share code, notes, and snippets.

@elleryq elleryq/.npmrc
Last active Aug 29, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.