更新时间:2023-11-05 15:06:22
要解决此问题,只需升级 react-scripts 包(使用 npm info react-scripts 版本检查最新版本代码>):
To fix this issue simply upgrade react-scripts package (check latest version with npm info react-scripts version
):
"react-scripts": "^3.xx"
替换为 "react-scripts": "^3.4.1"
(或最新的可用版本)npm install
或 yarn install
"react-scripts": "^3.x.x"
with "react-scripts": "^3.4.1"
(or the latest available version)npm install
or yarn install
有些人报告说这个问题是由运行 npm audit fix
引起的(避免它!).
Some people reported that this issue was caused by running npm audit fix
(avoid it!).