dotfiles/npm
2016-04-23 13:53:14 +12: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 Updated link syntax in all README files & added golang 2016-04-23 13:53:14 +12: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

Create a symlink for .npmrc

ln -s ~/.dotfiles/npm/npmrc ~/.npmrc

Shell wizardry

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