Andrew's Digital Garden

npmrc

You can have multiple npmrc files that 'cascade'. If a company requires a npmrc in its repos for a custom artifactory, I recommend making a per-user config file as well, so it persists outside of individual repos.

The four relevant files are:

  • per-project config file (/path/to/my/project/.npmrc)
  • per-user config file (~/.npmrc)
  • global config file ($PREFIX/etc/npmrc)
  • npm builtin config file (/path/to/npm/npmrc)

[[npm]] [[shell]]

npmrc