0

我目前正在修复我的 Ember.js 应用程序中的构建警告,我得到的是这个

[Babel: @ember/test-helpers > applyPatches]Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

但是运行该命令会提供以下输出:

npx: installed 6 in 2.566s
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
Latest version:     1.0.30001265
Installed version:  none
Removing old caniuse-lite from lock file
Installing new caniuse-lite version
$ yarn add -W caniuse-lite
Cleaning package.json dependencies from caniuse-lite
$ yarn remove -W caniuse-lite
caniuse-lite has been successfully updated
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating

警告永远不会消失。我已经尝试了该线程中的所有适用解决方案。这似乎是主要的帮助,但对我来说不是

npm --depth 20 update --save caniuse-lite browserslist 

我没有使用 Visual Studio,并尝试过吹走所有节点模块,但仍然一无所获。是否有任何已知问题或解决方法?

4

0 回答 0