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-02-04 03:36:55 +00:00
|
|
|
Create directory for global packages
|
|
|
|
|
|
|
|
`mkdir ~/.npm-packages`
|
|
|
|
|
2016-10-21 03:05:56 +00:00
|
|
|
Copy `.npmrc`
|
2016-01-23 00:58:21 +00:00
|
|
|
|
2016-10-21 03:05:56 +00:00
|
|
|
`cp ~/.dotfiles/npm/npmrc ~/.npmrc`
|
2016-01-23 00:58:21 +00:00
|
|
|
|
|
|
|
Shell wizardry
|
|
|
|
|
2016-04-23 01:53:14 +00:00
|
|
|
`ln -s ~/.dotfiles/npm/npm.zsh ~/.oh-my-zsh/custom/npm.zsh`
|
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
|