npm 淘宝镜像到期

npm 淘宝镜像到期了

npm ERR! request to https://registry.npm.taobao.org/cnpm failed, reason: certificate has expired

bash 复制代码
npm ERR! code CERT_HAS_EXPIRED
npm ERR! errno CERT_HAS_EXPIRED
npm ERR! request to https://registry.npm.taobao.org/cnpm failed, reason: certificate has expired

npm ERR! A complete log of this run can be found in: D:\nodejs\node_cache\_logs\2024-01-23T11_00_28_143Z-debug-0.log

将npm淘宝镜像切换至淘宝的新镜像域名

bash 复制代码
// 1. 清空缓存
npm cache clean --force
// 2. 切换新源
npm config set registry https://registry.npmmirror.com
// 3. 查看源是否设置成功
npm config get registry

参考:

npm 淘宝镜像到期了,尽快切换(npm使用淘宝镜像安装时报错)

相关推荐
excel几秒前
Vue 编译器源码解析:忽略副作用标签的 NodeTransform 实现
前端
excel几秒前
深入理解 Vue 编译阶段的 v-html 指令转换逻辑
前端
excel2 分钟前
Vue 模板编译中的 HTML 嵌套验证机制:validateHtmlNesting 源码解析
前端
excel3 分钟前
Vue Compiler 内部机制解析:transformTransition 源码深度剖析
前端
岁月玲珑5 分钟前
ComfyUI如何配置启动跳转地址127.0.0.1但是监听地址是0.0.0.0,::
java·服务器·前端
wuk99813 分钟前
Webpack技术深度解析:模块打包与性能优化
前端·webpack·性能优化
Moment35 分钟前
Cursor 2.0 支持模型并发,我用国产 RWKV 模型实现了一模一样的效果 🤩🤩🤩
前端·后端·openai
狂炫冰美式43 分钟前
QuizPort 1.0 · 让每篇好文都有测验陪跑
前端·后端·面试
咋吃都不胖lyh1 小时前
.docx 和 .doc 是 Microsoft Word 文档的两种主要文件格式
前端·html·xhtml
哈乐1 小时前
网工应用题:配置命令补全类题目
服务器·前端·网络