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使用淘宝镜像安装时报错)

相关推荐
巧克力芋泥包1 天前
前端使用阿里云图形验证码;并且与安卓进行交互
android·前端·阿里云
G***E3161 天前
前端GraphQLAPI
前端
lumi.1 天前
Vue + Element Plus 实现AI文档解析与问答功能(含详细注释+核心逻辑解析)
前端·javascript·vue.js·人工智能
z***I3941 天前
VueGraphQLAPI
前端
粉末的沉淀1 天前
css:制作带边框的气泡框
前端·javascript·css
p***h6431 天前
JavaScript在Node.js中的异步编程
开发语言·javascript·node.js
N***73851 天前
Vue网络编程详解
前端·javascript·vue.js
e***71671 天前
Spring Boot项目接收前端参数的11种方式
前端·spring boot·后端
程序猿小蒜1 天前
基于springboot的的学生干部管理系统开发与设计
java·前端·spring boot·后端·spring
银空飞羽1 天前
让Trae CN SOLO自主发挥,看看能做出一个什么样的项目
前端·人工智能·trae