npm/pnpm/yarn切换源
npm
# 查看源
npm get registry
npm config get registry
# 临时修改
npm --registry https:
# 永久修改
npm config set registry https:
# 还原
npm config set registry https:
NRM
npm install -g nrm
nrm ls
nrm use taobao
nrm test taobao
pnpm
# 查看源
pnpm get registry
pnpm config get registry
# 临时修改
pnpm --registry https:
# 永久修改
pnpm config set registry https:
# 还原
pnpm config set registry https:
yarn
# 查看源
yarn config get registry
# 临时修改
yarn add any-touch@latest --registry=https:
# 永久修改
yarn config set registry https:
# 还原
yarn config set registry https:
YRM
npm install -g yrm
yrm ls
yrm use taobao
yrm test taobao