gpt4 book ai didi

reactjs - 继续失败,错误为 "Browserslist: caniuse-lite is outdated "

转载 作者:行者123 更新时间:2023-12-02 22:50:28 27 4
gpt4 key购买 nike

我正在使用 Azure 静态 Web 应用来托管我的 React 网站。

我一直面临下面的错误。

yarn run v1.22.10
$ react-scripts build
Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Treating warnings as errors because process.env.CI = true.

Most CI servers set it automatically.

Failed to compile.

我已经尝试过npx browserslist@latest --update-db好几次了,但它一直向我发送运行失败的消息。

and here is the entire error image

最佳答案

对于所有面临这个问题的人来说,查看这篇文章Browserslist: caniuse-lite is outdated #1184

使用npm i npm-update-all -g更新所有过时的文件可以解决此问题

关于reactjs - 继续失败,错误为 "Browserslist: caniuse-lite is outdated ",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67856854/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com