首页 > 其他分享 >npm报错:request to https://registry.npm.taobao.org failed, reason certificate has expired

npm报错:request to https://registry.npm.taobao.org failed, reason certificate has expired

时间:2024-03-07 11:12:04浏览次数:17  
标签:npm certificate 报错 registry https 淘宝 镜像

NPM使用遇到错误:

错误原因:淘宝镜像过期

解决方案:

​ 1.查看当前npm设置: npm config list

​ 2.清空缓存:npm cache clean --force

​ 3.修改npm为淘宝镜像:npm config set registry https://registry.npmmirror.com

​ 4.再次查看npm设置,已经修改为淘宝镜像

)

​ 问题解决!!!

标签:npm,certificate,报错,registry,https,淘宝,镜像
From: https://www.cnblogs.com/liusu520/p/18058469

相关文章

  • fluentd 报错处理
    一些问题的处理方式记录failedtoreaddatafrompluginstoragefilepath="/var/log/kernel.pos/worker0/storage.json"error_class=Fluent::ConfigErrorerror="Invalidcontents(notobject)inpluginstoragefile:'/var/log/kernel.pos/worker0/storage......
  • MySQL 从库同步数据报错: Can't find record in '表名', Error_code: 1032; handler er
    由于两边数据不一致,主库host表的某条数据在从库不存在,导致同步时执行update报错。 修复的原理很简单,找到主从不一致的这条数据,在从库补上,让update能执行就好。由于需要从binlog里找数据,需要确保中断之后的binlog没被删除,否则就只能重搭了。导出日志:mysqlbinlog-v--stop-po......
  • 记录一次WPF命令参数报错,InvalidCastException: T for DelegateCommand<T> is not an
    在使用WPF的时候对int或者bool类型进行绑定出现InvalidCastException:TforDelegateCommandisnotanobjectnorNullable.<ButtonWidth="200"Height="30"Content="按钮"Command="{BindingOpenCommand}"CommandParameter="{Binding......
  • 2024-03-05 NestJs学习日志之新建nest项目,运行启动命令nest start报错:Could not find
    如题,低级错误。具体报错:CouldnotfindTypeScriptconfigurationfile"tsconfig.json".Please,ensurethatyouarerunningthiscommandintheappropriatedirectory(insideNestworkspace)找不到TypeScript配置文件“tsconfig.json”。请确保您在适当的目录(Nest工作......
  • mysql报错代码汇总
    先给大家看几个实例的错误分析与解决方案。1.ERROR2002(HY000):Can'tconnecttolocalMySQLserverthroughsocket'/data/mysql/mysql.sock'问题分析:可能是数据库没有启动或者是端口被防火墙禁止。解决方法:启动数据库或者防火墙开放数据库监听端口。2.ERROR1045......
  • Oceanbase数据库创建分区时报错
    报错信息:ERROR1044(42000):Accessdeniedforuser'root'@'%'todatabase'oceanbase'报错原因:由于OceanBase数据库中,oceanbase库是系统库,里面存放的是系统的很多表,所以不能进行操作,换个库即可,一般到test库下,执行操作......
  • mysql报错:SQL 错误 [1030] [HY000]: Got error 100 - 'InnoDB error' from storage en
    在mysql中进行alter时,报错:SQL错误[1030][HY000]:Goterror100-'InnoDBerror'fromstorageengine 原因:在配置my.cnf或my.ini里面innodb_force_recovery参数的值大于0,它默认值为0,如果大于0,innodb就会禁用insert、update、delete、alter语句。解决方式:在配置my.cn......
  • 未完成编辑 Linux CentOS7.6使用腾讯Yum源安装MySQL5.7,执行mysql-secure-installation
    学习安装MySQL时发现官方源很慢,试了国内腾讯源快,记录一下LinuxCentOS7.6前置环境:CPU1内存4GB硬盘SCSI20GB网络模式桥接系统内为自动DHCPpingqq.com可通互联网以下为MySQL5.7安装步骤编辑新repo库路径:/etc/yum.repos.d/mysql-community.repovi/etc/yum.repos......
  • 备忘:npm 和 yarn 的常用源设置
    NPM: ###1、查看当前源:npmconfiggetregistry###2、恢复官方源:npmconfigsetregistryhttps://registry.npmjs.org###3、设置镜像源:npmconfigsetregistryhttps://registry.npmmirror.com###4、设置淘宝源:npmconfigsetregistryhttps://registry.npm.t......
  • mssql排序order by42000报错解决
    原文链接:https://blog.csdn.net/wang1qqqq/article/details/122961882在mssql查询中,如果子查询中使用orderby,会出现报错:[42000][Microsoft][ODBCDriver17forSQLServer][SQLServer]除非另外还指定了TOP、OFFSET或FORXML,否则,ORDERBY子句在视图、内联函数、派生表、子......