目录
1、设置淘宝镜像
默认的官方镜像:https://registry.npmjs.org,切换国内淘宝镜像,访问下载更快。
bash
npm config set registry https://registry.npmmirror.com/
其他,如pnpm:
bash
pnpm config set registry https://registry.npmmirror.com/
2、查看源
bash
npm config get registry