dotfiles/npm/README.md

473 B

NPM

  • Install NPM packages globally without requiring sudo. (source)
  • Save exact version instead of a 'loose' version. (source)

Create directory for global packages

mkdir ~/.npm-packages

Copy .npmrc

cp ~/.dotfiles/npm/npmrc ~/.npmrc

Shell wizardry

ln -s ~/.dotfiles/npm/npm.zsh ~/.oh-my-zsh/custom/npm.zsh