npmrc1
Switch between different .npmrc files
Overview
npmrc
-
Switch between different .npmrc files with ease and grace.
Usage:
npmrc
|
list all profiles |
|---|---|
npmrc [name]
|
change npmrc profile (uses fuzzy matching) |
npmrc
|
create a new npmrc profile called name |
npmrc
|
use an npm mirror |
Available mirrors for npmrc -r:
au
|
- Australian registry mirror |
|---|---|
eu
|
- European registry mirror |
cn
|
- Chinese registry mirror |
|
default - Default registry |
Example:
-
# Creating and activating a new .npmrc called "work": $ npmrc
-cwork
-
# Switch between "work" and "default" $ npmrc work $ npmrc default # Use the European npm mirror $ npmrc
-reu
Releases
4 releases since Debian 10 (Buster); the text changed 2 times.