Manpages
Menu
Close menu
Search
Browse
Releases
26.10
(stonking)
26.04 LTS
(resolute)
24.04 LTS
(noble)
22.04 LTS
(jammy)
20.04 LTS
(focal)
18.04 LTS
(bionic)
Ubuntu Manpages
Close
Search
jammy
man(1)
npmrc.1.gz
Initialising
Switch between different .npmrc files
Provided by:
node-npmrc (Version: 1.1.1-2)
Report a bug
DESCRIPTION
npmrc
Switch between different .npmrc files with ease and grace.
Usage:
npmrc
list all profiles
npmrc [name]
change npmrc profile (uses fuzzy matching)
npmrc
-c
[name]
create a new npmrc profile called name
npmrc
-r
[registry]
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
-c
work
# Switch between "work" and "default" $ npmrc work $ npmrc default # Use the European npm mirror $ npmrc
-r
eu
Creating /sbuild-nonexistent/.npmrcs