dotfiles/npm
2016-10-21 16:05:56 +13:00
..
npm.zsh Initial commit. 2016-01-23 13:58:21 +13:00
npmrc Initial commit. 2016-01-23 13:58:21 +13:00
README.md Update README files 2016-10-21 16:05:56 +13:00

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