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