npm install报错

fengbindeMacBook-Pro:ant-design-cloud fengbin$ npm install

npm ERR! code CERT_HAS_EXPIRED

npm ERR! errno CERT_HAS_EXPIRED

npm ERR! request to https://registry.npm.taobao.org/yorkie/download/yorkie-2.0.0.tgz failed, reason: certificate has expired

npm ERR! A complete log of this run can be found in:

npm ERR!     /Users/fengbin/.npm/_logs/2024-03-16T01_33_34_155Z-debug.log

解决方案:

npm cache clean --force
npm config set strict-ssl false
npm install

-----npm配置------

vi /Users/fengbin/.npmrc

registry=https://registry.npmmirror.com/

disturl=https://npm.taobao.org/dist

strict-ssl=false

相关推荐

  1. IDEA

    2024-03-17 05:38:03       38 阅读
  2. sqoop运行

    2024-03-17 05:38:03       40 阅读
  3. yarn install

    2024-03-17 05:38:03       38 阅读
  4. 安装Paddlehub

    2024-03-17 05:38:03       35 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-03-17 05:38:03       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-03-17 05:38:03       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-03-17 05:38:03       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-03-17 05:38:03       18 阅读

热门阅读

  1. 数据结构-哈希表(一)

    2024-03-17 05:38:03       19 阅读
  2. List、Set、数据结构、Collections-笔记

    2024-03-17 05:38:03       21 阅读
  3. 供应RTC77601E芯片现货

    2024-03-17 05:38:03       21 阅读
  4. 指针基础 - golang版

    2024-03-17 05:38:03       19 阅读
  5. linux-centos如何配置临时ip

    2024-03-17 05:38:03       20 阅读
  6. 小程序的写法和vue有啥区别?

    2024-03-17 05:38:03       22 阅读
  7. K8S下微服务平滑发布的一些思考与总结

    2024-03-17 05:38:03       19 阅读