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