https://github.com/deiga/nodenv-default-npmrc
nodenv plugin to install a root npmrc for each node version
https://github.com/deiga/nodenv-default-npmrc
nodenv nodenv-plugin npmrc
Last synced: 8 months ago
JSON representation
nodenv plugin to install a root npmrc for each node version
- Host: GitHub
- URL: https://github.com/deiga/nodenv-default-npmrc
- Owner: deiga
- License: mit
- Created: 2017-06-27T14:04:49.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2025-09-05T08:06:56.000Z (9 months ago)
- Last Synced: 2025-09-05T10:08:36.233Z (9 months ago)
- Topics: nodenv, nodenv-plugin, npmrc
- Language: Shell
- Homepage:
- Size: 48.8 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nodenv-default-npmrc
[](https://travis-ci.org/deiga/nodenv-default-npmrc)
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`][nodenv-default-packages] plugin from
[sstephenson][sstephenson].
## Installation
### Installing as a nodenv plugin
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
### Installing with Homebrew (for OS X users)
Mac OS X users can install nodenv-default-npmrc with the
[Homebrew](http://brew.sh) 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
```
## Usage
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`.
## Credits
Forked from [Sam Stephenson][sstephenson]'s [nodenv-default-packages][] by [Timo Sand][deiga].
[sstephenson]: https://github.com/sstephenson
[nodenv-default-packages]: https://github.com/rbenv/nodenv-default-packages
[deiga]: https://github.com/deiga
[nodenv]: https://github.com/nodenv/nodenv