Skip to content

Read registry from npm config instead of hard-wiring to npmjs.org in node-package-manager #3866

Closed
@lambourn

Description

@lambourn

We use artifactory as a our internal npm repository. It mirrors npmjs.org and also allow us to push internal npm packages to it.

However, when we do a clean install/build using tns build android the nativescript-cli itself starts a http client to pull the tns-android package from npmjs.org:

const url = `https://registry.npmjs.org/${packageName}`;

this does not work for us.

Ideally, inside the getRegistryPackageData the registry to use should be read from the npm config (.npmrc)

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions