0


npm、yarn、pnpm 设置最新国内镜像源(附官方镜像源和最新阿里源),以及 nrm 的使用教程

阿里最近(指的是 2022 年~~哈哈)更换了淘宝镜像的域名,原域名的 SSL 证书已经过期了(2024/01/22),最近使用旧 淘宝镜像 的应该都遇到 Error: certificate has expired 了吧,遇到了可以看下这个解决方案~

npm

查询源
npm get registry
设置源
国内 淘宝 镜像源
npm config set registry https://registry.npmmirror.com/
官方镜像源
npm config set registry https://registry.npmjs.org/

###pnpm
pnpm 的镜像源默认

查询源
pnpm get registry
设置源
国内 淘宝 镜像源

pnpm config set registry https://registry.npmmirror.com/

官方镜像源

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

在这里插入图片描述

标签: npm 前端 node.js

本文转载自: https://blog.csdn.net/qq_25439417/article/details/140795461
版权归原作者 南七小僧 所有, 如有侵权,请联系我们删除。

“npm、yarn、pnpm 设置最新国内镜像源(附官方镜像源和最新阿里源),以及 nrm 的使用教程”的评论:

还没有评论