Update a value in a project's .npmrc
npm config
will prefer to use the user-local .npmrc
(i.e. ~/.npmrc
). We can repurpose the --userconfig
flag to write to an arbitrary file (e.g. an .npmrc
stored in a project) instead:
This can be useful in CI scenarios:
Source: stackoverflow
Last updated