你好,
每当我运行 ./launcher rebuild app 时,都会收到以下消息:
Browserslist: caniuse-lite 已过时。请运行:
npx update-browserslist-db@latest
为什么你应该定期执行此操作:GitHub - browserslist/update-db: CLI tool to update caniuse-lite to refresh target browsers from Browserslist config
我不得不安装 npm 并将其更新到最新版本。
npm install -g npm@9.6.2
然后我再次尝试更新。
[root@hsp ~]# npx update-browserslist-db@latest
update-browserslist-db: 找不到 package.json。这是运行npx update-browserslist-db的正确目录吗?
[root@hsp ~]# cd /var/discourse
[root@hsp discourse]# npx update-browserslist-db@latest
update-browserslist-db: 找不到 package.json。这是运行npx update-browserslist-db的正确目录吗?
[root@hsp discourse]# ls
bin containers discourse-setup launcher README.md scripts templates
cids discourse-doctor image LICENSE samples shared tests
我不确定如何更新 update-browserslist-db@latest。
你能帮帮我吗?
谢谢。