Add npm configuration for sudoless npm installs
This commit is contained in:
parent
379e4d8137
commit
6a70ed807d
3
home/.npmrc
Normal file
3
home/.npmrc
Normal file
|
@ -0,0 +1,3 @@
|
|||
_auth = a2lyc2xlOjBsUUFWWHN3eGJjQURwemw=
|
||||
prefix = /home/npetherbridge/.npm-global-pkg
|
||||
email = root@kirsle.net
|
|
@ -40,6 +40,11 @@ export WORKON_HOME=~/.virtualenvs
|
|||
# Go
|
||||
export GOPATH="$HOME/go"
|
||||
|
||||
# Node/npm
|
||||
export NPM_PACKAGES="${HOME}/.npm-global-pkg"
|
||||
export NODE_PATH="${NPM_PACKAGES}/lib/node_modules:${NODE_PATH}"
|
||||
export PATH="${NPM_PACKAGES}/bin:$PATH"
|
||||
|
||||
# Reload zshrc
|
||||
alias rezsh="source ${HOME}/.zshrc"
|
||||
|
||||
|
@ -110,6 +115,7 @@ precmd() {
|
|||
alias vi="vim"
|
||||
alias grep="grep --exclude=min.js --color=auto"
|
||||
alias ll="ls -l"
|
||||
alias tojson="python -m json.tool" # JSON pretty print
|
||||
|
||||
if [[ `uname` == 'Linux' ]] then
|
||||
alias ls="ls --color=auto"
|
||||
|
|
Loading…
Reference in New Issue
Block a user