Scroll to navigation

INITIALISING(1) User Commands INITIALISING(1)

NAME

Initialising - Switch between different .npmrc files

DESCRIPTION

npmrc

Switch between different .npmrc files with ease and grace.

Usage:

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:

- Australian registry mirror
- European registry mirror
- 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

January 2020 Initialising npmrc...