dotfiles/npm/README.md

460 B

NPM

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

Create a symlink for .npmrc

ln -s npmrc ~/.npmrc

Shell wizardry

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

Create directory for global packages

mkdir ~/.npm-packages