首页 > 其他分享 >Install fail! ResponseError: certificate has expired, GET https://r.npm.taobao.org/ NPM install报错ce

Install fail! ResponseError: certificate has expired, GET https://r.npm.taobao.org/ NPM install报错ce

时间:2024-02-23 09:44:05浏览次数:58  
标签:npm certificate js 报错 registry org expired

× Install fail! Error: certificate has expired
Error: certificate has expired
    at TLSSocket.onConnectSecure (_tls_wrap.js:1515:34)
    at TLSSocket.emit (events.js:400:28)
    at TLSSocket._finishInit (_tls_wrap.js:937:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:709:12)

看文字是证书过期了,一头问号
如下设置,都不管用

1、取消ssl验证:

npm config set strict-ssl false
这个方法一般就可以解决了。
2、更换npm镜像源:

npm config set registry http://registry.cnpmjs.org
npm config set registry http://registry.npm.taobao.org

npm i -g firebase-tools@latest

 

标签:npm,certificate,js,报错,registry,org,expired
From: https://www.cnblogs.com/dianzan/p/18028696

相关文章

  • 7+j就会报错,数字7就不会报错,我想加个变量应该怎么做呢?
    大家好,我是Python进阶者。一、前言前几天在Python白银交流群【黄志诚】问了一个Python处理Excel数据的问题。问题如下:问一个问题。7+j就会报错,数字7就不会报错,我想加个变量应该怎么做呢?二、实现过程这里【瑜亮老师】、【此类生物】、【巭孬......
  • 报错信息
     (base)➜DeepLSDgit:(main)✗pipinstall-eline_refinementLookinginindexes:https://pypi.tuna.tsinghua.edu.cn/simpleObtainingfile:///home/featurize/DeepLSD/line_refinementPreparingmetadata(setup.py)...doneInstallingcollectedpackages:line-......
  • Jenkins在jdk17的Tomcat上运行报错
    Jenkins在jdk17的Tomcat上运行报错一、环境宝塔:tomcat8.0jdk:jdk17二、保存项目时报错​Unabletomakefieldprotectedtransientintjava.util.AbstractList.modCountaccessible:modulejava.basedoesnot"opensjava.util"tounnamedmodule@6d15ca84​查看local......
  • npm i canvas 报错 [email protected] run install node-pre-gyp install --fallback-to-b
    今天在写项目的时候安装npmicanvas的时候一直报错。具体错误如下npmERR!commandfailednpmERR!commandC:\Windows\system32\cmd.exe/d/s/cnode-pre-gypinstall--fallback-to-build--update-binarynpmERR!node-pre-gypinfoitworkedifitendswithoknpmE......
  • 运行Xmind出现invalid configuration location报错的解决办法
    问题说明安装了XMind后,直接点击*.xmind文件,提示报错“invalidconfigurationlocation”。错误提示内容为:Theconfigurationareaat‘C:\Windows\systems.\configuration’isnotwritable.Pleasechooseawritablelocationusingthe‘-configuration’commandlineo......
  • Qt程序执行报错:"This application failed to start because not Qt platform plugin c
    Qt编译的exe程序执行时报错:出现以上错误的原因是由于的系统环境路径缺失或者exe程序目录下缺少对应的dll导致。以上为缺少对应的Qtplatformplugin。在Qt的安装目录下将platforms整个目录拷贝到exe所在目录下,即可执行。如果提示缺少对于的xxx.dll直接将对应缺失......
  • 使用html2Canvas截图网页时,网页存在图片报错:Tainted canvases may not be exported
     这是因为图片跨域产生的报错,看有的说法可以把所有图片进行允许跨域配置,但是比较麻烦。html2canvas有参数可以配置是否允许跨域 参数名称类型默认值描述allowTaintbooleanfalseWhethertoallowcross-originimagestotaintthecanvas---允许跨域background......
  • npm 报错 npm ERR! request to https://registry.npm.taobao.org/three failed, reaso
    1.问题描述npm使用淘宝镜像安装报错npmERR!codeCERT_HAS_EXPIREDnpmERR!errnoCERT_HAS_EXPIREDnpmERR!requesttohttps://registry.npm.taobao.org/xxxfailed,reason:certificatehasexpired2.错误原因错误提示已经告诉原因是淘宝镜像过期了!其实,早在2021......
  • mysql服务启动报错:本地计算机上的mysql服务启动后停止,某些服务在未由其他服务或程序启
    报错如下: 解决办法:1.开始->cmd->以管理员身份运行目录切换到C:\ProgramFiles\MySQL\MySQLServer5.7\bin2.运行mysqld--initialize-insecure--user=mysql说明:初始化后,root密码位空3.运行netstartmysql 三、修改mysql57的root密码[2]四、参考[1] mysql服务启......
  • 通过ata硬盘报错查找对应硬盘
    通过ata硬盘报错查找对应硬盘查看报错dmesg|greperror[2349121.449762]ata8.00:error:{ABRT}res51/04:00:00:80:98/00:00:00:00:00/afEmask0x1(deviceerror)[2349793.559822]ata8.00:error:{ABRT}res51/04:00:00:80:98/00:00:00:00:00/a......