nodejs / nodejs/corepack

Feature request: `COREPACK_NPM_REGISTRY ` defaults to `$(npm config get registry)`

Open
#540 11 comments 28 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
3.8k
Forks
279
Avg merge
1h 47m
Merged PRs (30d)
2

Description

Currently, the default value of COREPACK_NPM_REGISTRY is https://registry.npmjs.org.
My npm registry has been changed to another one, while corepack is still using https://registry.npmjs.org.

Setting up COREPACK_NPM_REGISTRY value to follow $(npm config get registry) (the configed npm registry) is convenient, so that I don't need to concern the registry of corepack

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Trace where Corepack resolves the default COREPACK_NPM_REGISTRY value and how it can obtain the configured npm registry. Check the existing registry-related behavior and tests before changing it; done means Corepack follows the value from npm config get registry when the environment variable is unset, with tests covering the default.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, typescript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.