npm/pnpm/yarn 切换源
npm/pnpm/yarn 切换源
npm
npm get registry
npm config get registry
npm --registry https://registry.npmmirror.com install any-touch
npm config set registry https://registry.npmmirror.com
npm config set registry https://registry.npmjs.org
NRM
npm install -g nrm
nrm ls
nrm use taobao
nrm test taobao
pnpm
pnpm get registry
pnpm config get registry
pnpm --registry https://registry.npmmirror.com install any-touch
pnpm config set registry https://registry.npmmirror.com
pnpm config set registry https://registry.npmjs.org
yarn
yarn config get registry
yarn add any-touch@latest --registry=https://registry.npmjs.org/
yarn config set registry https://registry.npmmirror.com/
yarn config set registry https://registry.yarnpkg.com
YRM
npm install -g yrm
yrm ls
yrm use taobao
yrm test taobao
更换本地缓存
pnpm config set store-dir <new path> //将<new path> 替换为目标存储路径(非中文)
pnpm store path