dotfiles/npm/README.md

20 lines
460 B
Markdown
Raw Normal View History

2016-01-23 00:58:21 +00:00
# NPM
* Install NPM packages globally without requiring sudo. ([source][1])
* Save exact version instead of a 'loose' version. ([source][2])
2016-01-23 21:45:18 +00:00
Create a symlink for `.npmrc`
2016-01-23 00:58:21 +00:00
2016-01-23 21:45:18 +00:00
`ln -s npmrc ~/.npmrc`
2016-01-23 00:58:21 +00:00
Shell wizardry
`ln -s npm.zsh ~/.oh-my-zsh/custom/npm.zsh`
2016-01-23 21:45:18 +00:00
Create directory for global packages
`mkdir ~/.npm-packages`
2016-01-23 00:58:21 +00:00
[1]: https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md
[2]: https://docs.npmjs.com/misc/config#save-exact