dotfiles/npm
2016-02-04 16:36:55 +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 Updated a few READMEs 2016-02-04 16:36:55 +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

Create a symlink for .npmrc

ln -s npmrc ~/.npmrc

Shell wizardry

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