NPMRC.JS(1)
π NAME π
npmrc.js β switch between different .npmrc files, bestie. it's giving profile-manager energy β¨
πΈ DESCRIPTION πΈ
okay so. npmrc? literally the cutest way to switch between different .npmrc files with ease and grace π
no cap, that's the whole vibe.
π Usage
npmrcβ list all profiles πnpmrc [name]β change npmrc profile (uses fuzzy matching, so you don't gotta type it perfect, slay) π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
and that's the whole page, periodt π go switch some profiles, you're the main character of your own config fr fr π«Ά
this was npmrc.js version 1.1.1, from March 2022, living in the NPMRC.JS(1) manual β bye bestie, ily, go be iconic ππ
π¦ where this page comes from
- ubuntu noble: node-npmrc 1.1.1-3 Β· BSD-3-Clause
- ubuntu questing: node-npmrc 1.1.1-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms