Last active
August 29, 2015 13:57
-
-
Save elleryq/36728e2ae9c05e0c32c7 to your computer and use it in GitHub Desktop.
nodejs/npm setup. HOME=/home/user
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
prefix = /home/user/.local | |
root = /home/user/.local/lib/node_modules | |
binroot = /home/user/.local/bin | |
manroot = /home/user/.local/share/man |
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
# 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