首页 > 其他分享 >npm install 报错 ---》npm ERR! request to https://registry.npmjs.org/react failed, reason: certificate

npm install 报错 ---》npm ERR! request to https://registry.npmjs.org/react failed, reason: certificate

时间:2024-05-12 16:52:20浏览次数:13  
标签:npm ERR react 报错 install yet

1、npm install 报错

E:\wsg\AWC_TEST\stage>npm install react react-dom
npm ERR! code CERT_NOT_YET_VALID
npm ERR! errno CERT_NOT_YET_VALID
npm ERR! request to https://registry.npmjs.org/react failed, reason: certificate is not yet valid

npm ERR! A complete log of this run can be found in:
npm ERR! E:\nodejs\node_cache\_logs\2022-05-12T08_44_13_104Z-debug-0.log

 

解决办法:

因为我是在虚拟操作的,因为种种原因,我把虚拟机Window系统的日期,设置成不是最新的。

只要把日期重新设置成最新的,解决这个问题了!

 

标签:npm,ERR,react,报错,install,yet
From: https://www.cnblogs.com/wwssgg/p/18187937

相关文章

  • 解释一下这两行 "pub": "pnpm --filter \"./packages/*\" run pub", "pub:b
    F:\learn-front\code-inspector\package.json这两行命令是用于在JavaScript项目中发布(publish)软件包到npm仓库的脚本定义,常见于使用pnpm作为包管理器的Monorepo(单仓库多项目)结构的项目中。这里具体解释一下每部分的含义:pub:这是一个npm脚本的别名,当在命令行中执行npmrunp......
  • mysql使用group by查询报错SELECT list is not in GROUP BY clause and contains nona
    官方解释:ONLY_FULL_GROUP_BY是MySQL数据库提供的一个sql_mode,通过这个sql_mode来保证,SQL语句“分组求最值”合法性的检查.这种模式采用了与Oracle、DB2等数据库的处理方式。即不允许selecttargetlist中出现语义不明确的列.对于用到GROUPBY的select语句,查出......
  • C# 使用QuestPDF各种报错,System.IO.FileNotFoundException:“未能加载文件或程序集,Dll
    最近要做一个生成pdf报告的小功能,搜索一番之后,选择了QuestPDF这个库由于我是要在netframework4.8中实现功能,可能使用场景太老了,导致使用过程一波三折,非常的坎坷,折腾了一下午,增长了一些经验,记录下来1,如果你要在netframework4.8框架中使用,就不要自作聪明的用netstandard2.0框架......
  • windows安装metasploit,运行报错处理
    最近给几个windows11的系统安装了metasploit,其中有几个在启动msf时报错D:/metasploit-framework/embedded/framework/1ib/net/dns/resolver.rb:345:in'nameservers=':String,Wrongarguentformat,neitherString,ArraynorIPAddr(ResolverArgumentError)看起来像是dn......
  • 创建reacte工程2
    1配置store1)安装npminstall@reduxjs/toolkit react-redux【index.js】import{Provider}from'react-redux'import{store}from'store'<Providerstore={store}><App/></Provider>【store/index.js】import{configureStore}f......
  • 2024-05-11 react-native 相关面试题
     ReactNative是什么?ReactNative是Facebook开源的一个使用JavaScript和React编写原生应用的框架。它允许开发者使用JavaScript和React编写跨平台的移动应用,这些应用可以运行在iOS和Android平台上。ReactNative有哪些优点?跨平台:一套代码可以开发出跨平台的app,减少了人......
  • Git -- 修改git账号密码后,进行git提交时报错
    修改git账号密码后,进行git提交时报错$gitpushorigindevelopremote:HTTPBasic:Accessdeniedfatal:Authenticationfailedfor'http://xxx/web.git/'重新设置下git信息gitconfig--globaluser.name"yourname"gitconfig--globaluser.email"your......
  • React、Vue我全都要!React Hook 实现 Vue 的11个基本功能
    注:转自https://zhuanlan.zhihu.com/p/647975794,非商用,仅用于自我学习1、JSX和template在Vue2中是使用template的,这点使用Vue的同学们都知道,而在React中使用的是JSX,JSX是一个看起来很像XML的JavaScript语法扩展。它有以下优点:JSX执行更快,因为它在编译为JavaScript......
  • 构建react项目
    1,建立工程的2种方式1)用npm npxreact-create-appxxx2)用脚手架 creacte-react-appxxx【推荐】 2,更换项目图标和title(属于公共的东西在public文件夹里面) public/favicon.ico public/index.html 3,创建react函数组件代码片段文件->首选项->设置用户代码片段......
  • Python-PostgreSQL主键自动填充报错:SAWarning: Column x is marked as a member of th
    importdatetimefromsqlalchemyimportColumn,String,inspect,Integerfromsqlalchemy.ext.declarativeimportdeclarative_basefromsqlalchemy.ormimportsessionmakerfromsqlalchemyimportcreate_engineengine=create_engine(DATABASE_URL)Base=decla......