You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's common to install packages from multiple registries. For example, an organization may wish to install packages from @my-org from their own registry, while still using the official npm registry for other packages.
You can achieve this with a line in your .npmrc that looks something like this:
@my-org:registry=https://npm.pkg.github.com
With npm-api, the registry is hard-coded in lib/config.js. It does not look at .npmrc, and does not provide a way to manually override the registry location/add a second location.
The text was updated successfully, but these errors were encountered:
Ha, thanks for filing this. Just stumbled upon this repository and it was the very first question I had. If it doesn't look at npmrc file contents, what does it use? 😳
It's common to install packages from multiple registries. For example, an organization may wish to install packages from
@my-org
from their own registry, while still using the official npm registry for other packages.You can achieve this with a line in your
.npmrc
that looks something like this:With
npm-api
, the registry is hard-coded inlib/config.js
. It does not look at.npmrc
, and does not provide a way to manually override the registry location/add a second location.The text was updated successfully, but these errors were encountered: