pnpm设置国内源

淘宝镜像地址

https://registry.npmmirror.com/

设置方法

# 查询当前使用的镜像源
pnpm get registry

# 设置为淘宝镜像源
pnpm config set registry https://registry.npmmirror.com/

# 还原为官方镜像源
pnpm config set registry https://registry.npmjs.org/

验证设置

pnpm get registry
posted @ 2024-07-18 11:08  keepnode  阅读(10)  评论(0编辑  收藏  举报