any86 / Notes

:rocket: 笔记

Home Page:https://github.com/any86/Notes/issues

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm / yarn / pnpm设置淘宝安装源

any86 opened this issue · comments

npm

查看源

npm get registry

临时修改

npm --registry https://registry.npm.taobao.org install 5a.css

持久使用

npm config set registry https://registry.npm.taobao.org

还原

npm config set registry https://registry.npmjs.org

yarn

查看源

yarn config get registry

临时修改

yarn add 5a.css@latest --registry=https://registry.npmjs.org/

持久修改

yarn config set registry https://registry.npm.taobao.org/

pnpm

查看源

pnpm get registry

临时修改

pnpm --registry https://registry.npm.taobao.org install 5a.css

持久使用

pnpm config set registry https://registry.npm.taobao.org

还原

pnpm config set registry https://registry.npmjs.org