Corepack 是一个实验性工具,可帮助管理包管理器的版本。
使用的镜像不是npm的设置,需要设置环境变量。
我使用的是nushell
$env.COREPACK_NPM_REGISTRY = https://registry.npmmirror.com
bash使用
EXPORT COREPACK_NPM_REGISTRY = https://registry.npmmirror.com