Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use configured registry when checking manifest for npm install #3760

Merged

Conversation

yacoman89
Copy link
Contributor

This fix resolves #3758.

The package pacote accepts options as it's second parameter for the manifest call and these options allow you to pass the desired registry to use. The npm config object already has this information, so it's just passed in now.

@yacoman89 yacoman89 requested a review from a team as a code owner September 15, 2021 14:47
lib/install.js Outdated Show resolved Hide resolved
@wraithgar
Copy link
Member

Good catch! The flatOptions attribute is a flattened form of the config intended to be passed to other components. Looks like this call got missed.

@wraithgar
Copy link
Member

Looks like linting failed. Max line length is 80, line is 81. We're upping that limit soon but for today you'll have to break it up.

@wraithgar
Copy link
Member

That worked! Thank you very much for submitting this PR.

@wraithgar wraithgar changed the base branch from latest to release-next September 15, 2021 15:52
@wraithgar wraithgar force-pushed the npm-install-registry-mirror-fix branch from 271b75f to 2def17a Compare September 15, 2021 15:52
@wraithgar wraithgar merged commit 2def17a into npm:release-next Sep 15, 2021
@yacoman89 yacoman89 deleted the npm-install-registry-mirror-fix branch September 15, 2021 15:53
@fritzy fritzy mentioned this pull request Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Changing NPM version when on 7.23.0 ignores registry option
2 participants