npm/yarn/pnpm快速切换/还原安装源
🍖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
本文是原创文章,采用 CC BY-NC-ND 4.0 协议,完整转载请注明来自 Nuri Alfred - Deertech
评论
匿名评论
隐私政策
你无需删除空行,直接评论以获取最佳展示效果