npm install报错certificate has expired

报错: reason: certificate has expired

在这里插入图片描述

解决:更换npm镜像源

登录到服务器上,更换npm镜像源(或者在jenkins上配置)

npm config set registry http://registry.cnpmjs.org
npm config set registry http://registry.npm.taobao.org
#如果上面两个命令不生效,可以执行下面的清除缓存的命令再试一下
npm cache clean --force

在这里插入图片描述

相关推荐

  1. IDEA

    2024-01-28 23:50:01       62 阅读
  2. sqoop运行

    2024-01-28 23:50:01       61 阅读
  3. yarn install

    2024-01-28 23:50:01       54 阅读
  4. 安装Paddlehub

    2024-01-28 23:50:01       62 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-01-28 23:50:01       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-01-28 23:50:01       101 阅读
  3. 在Django里面运行非项目文件

    2024-01-28 23:50:01       82 阅读
  4. Python语言-面向对象

    2024-01-28 23:50:01       91 阅读

热门阅读

  1. Debezium发布历史92

    2024-01-28 23:50:01       49 阅读
  2. CentOS服务器拒绝SSH登录

    2024-01-28 23:50:01       57 阅读
  3. SqlServer日期格式转换

    2024-01-28 23:50:01       58 阅读
  4. c#学习笔记-内存管理和gc优化

    2024-01-28 23:50:01       54 阅读
  5. Top100 子串

    2024-01-28 23:50:01       61 阅读
  6. 软考笔记--数据库访问接口

    2024-01-28 23:50:01       57 阅读
  7. Redis 为什么快?

    2024-01-28 23:50:01       52 阅读
  8. 踩坑(6)Redisson调用unlockAsync方法释放锁失败

    2024-01-28 23:50:01       62 阅读
  9. uniapp+极光做消息推送

    2024-01-28 23:50:01       56 阅读