赞
踩
今天项目重新clone了下来,npm i 安装后,会报错:
gine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated core-js-pure@3.14.0: core-js-pure@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js-pure.
npm ERR! code CERT_HAS_EXPIRED
npm ERR! errno CERT_HAS_EXPIRED
npm ERR! request to https://registry.npm.taobao.org/readdirp/download/readdirp-2.2.1.tgz failed, reason: certificate has expired
npm ERR! A complete log of this run can be found in: C:\Users\wuyan\AppData\Local\npm-cache\_logs\2024-02-27T07_43_58_703Z-debug-0.log
npm ERR! request to https://registry.npm.taobao.org/readdirp/download/readdirp-2.2.1.tgz failed, reason: certificate has expired
定位半天发现,淘宝镜像的地址变了:https://npmmirror.com/
手动修改 package-lock.json
打开 package-lock.json 文件。
使用文本编辑器的查找和替换功能,将所有的旧镜像地址https://registry.npm.taobao.org 替换为新的镜像地址 https://registry.npmmirror.com。
最后重新 npm i,就好了,
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。