🍖npm

查看源

npm 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.npmmirror.com

🥩yarn

查看源

yarn config get registry

临时修改

yarn add any-touch@latest --registry=https://registry.npmmirror.com

持久修改

yarn config set registry https://registry.npmmirror.com

🍔pnpm

查看源

pnpm 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.npmmirror.com