Feature request: `COREPACK_NPM_REGISTRY ` defaults to `$(npm config get registry)`
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
Same issue!!! 🫰 /
Although now the environment variable(process.env.COREPACK_NPM_REGISTRY) has a higher priority.
same, how to reslove it
same, how to reslove it
Set env variable: export COREPACK_NPM_REGISTRY=https://registry.npmmirror.com
Thank you
@chenlei0608 To use the same registry as npm, add export COREPACK_NPM_REGISTRY=$(npm config get registry) at the end of your .zshrc or .bashrc.
Thanks