This nodenv plugin hooks into the nodenv install
command to automatically
install a npmrc
file every time you install a new version of Node. It
requires the node-build
plugin to be installed.
Forked from the excellent nodenv-default-packages
plugin from
sstephenson.
Make sure you have the latest nodenv and node-build versions, then run:
git clone https://github.com/deiga/nodenv-default-npmrc.git $(nodenv root)/plugins/nodenv-default-npmrc
Mac OS X users can install nodenv-default-npmrc with the Homebrew package manager.
This is the recommended method of installation if you installed nodenv with Homebrew.
$ brew install nodenv/deiga/nodenv-default-npmrc
Or, if you would like to install the latest development release:
$ brew install --HEAD nodenv/deiga/nodenv-default-npmrc
nodenv-default-npmrc automatically installs the
$(nodenv root)/default-npmrc
file to ${PREFIX}/etc/npmrc
every time you successfully install a new
version of Node with nodenv install
.
Forked from Sam Stephenson's nodenv-default-packages by Timo Sand.