Skip to content

Instantly share code, notes, and snippets.

@anddam
Created August 2, 2019 09:13
Show Gist options
  • Save anddam/63e6a3bd062820d4874d294e31e6c5e3 to your computer and use it in GitHub Desktop.
Save anddam/63e6a3bd062820d4874d294e31e6c5e3 to your computer and use it in GitHub Desktop.
npm config
prefix = ${HOME}/.local/
cache = ${HOME}/.cache/npm
$ npm config list
; cli configs
metrics-registry = "https://registry.npmjs.org/"
scope = ""
user-agent = "npm/6.10.1 node/v8.10.0 linux x64"
; environment configs
userconfig = "/home/ada/.config/npm/npmrc"
; userconfig /home/ada/.config/npm/npmrc
cache = "/home/ada/.cache/npm"
prefix = "/home/ada/.local"
; globalconfig /etc/npmrc
userconfig = "/home/ada/.config/npm/npmrc"
; builtin config undefined
globalconfig = "/etc/npmrc"
globalignorefile = "/etc/npmignore"
; node bin location = /usr/bin/node
; cwd = /home/ada
; HOME = /home/ada
; "npm config ls -l" to show all defaults.
$ del $NPM_CONFIG_USERCONFIG
ada@ada-pc ~
$ npm config list
; cli configs
metrics-registry = "https://registry.npmjs.org/"
scope = ""
user-agent = "npm/6.10.1 node/v8.10.0 linux x64"
; globalconfig /etc/npmrc
userconfig = "/home/ada/.config/npm/npmrc"
; builtin config undefined
globalconfig = "/etc/npmrc"
globalignorefile = "/etc/npmignore"
prefix = "/usr/local"
; node bin location = /usr/bin/node
; cwd = /home/ada
; HOME = /home/ada
; "npm config ls -l" to show all defaults.
userconfig = ${HOME}/.config/npm/npmrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment