Browse Source

Build npmrc dynamically on first run

master
Noah Petherbridge 6 years ago
parent
commit
6f333bae07
  1. 3
      home/.npmrc
  2. 3
      home/.zshrc

3
home/.npmrc

@ -1,3 +0,0 @@
_auth = a2lyc2xlOjBsUUFWWHN3eGJjQURwemw=
prefix = /home/npetherbridge/.npm-global-pkg
email = root@kirsle.net

3
home/.zshrc

@ -41,6 +41,9 @@ export WORKON_HOME=~/.virtualenvs
export GOPATH="$HOME/go"
# Node/npm
if [[ ! -f "${HOME}/.npmrc" ]]; then
echo "prefix = ${HOME}/.npm-global-pkg" > $HOME/.npmrc
fi
export NPM_PACKAGES="${HOME}/.npm-global-pkg"
export NODE_PATH="${NPM_PACKAGES}/lib/node_modules:${NODE_PATH}"
export PATH="${NPM_PACKAGES}/bin:$PATH"

Loading…
Cancel
Save