Skip to content

npm-api does not respect .npmrc files #12

@mpiroc

Description

@mpiroc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions