Cannot find package.json

Hello,

Whenever I ./launcher rebuild app I get the following message

Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: GitHub - browserslist/update-db: CLI tool to update caniuse-lite to refresh target browsers from Browserslist config

I had to install npm and update it to the latest version

npm install -g npm@9.6.2

Then I tried to update again

[root@hsp ~]# npx update-browserslist-db@latest
update-browserslist-db: Cannot find package.json. Is this the right directory to run npx update-browserslist-db in?
[root@hsp ~]# cd /var/discourse
[root@hsp discourse]# npx update-browserslist-db@latest
update-browserslist-db: Cannot find package.json. Is this the right directory to run npx update-browserslist-db in?
[root@hsp discourse]# ls
bin containers discourse-setup launcher README.md scripts templates
cids discourse-doctor image LICENSE samples shared tests

I am not sure how can I update-browserslist-db@latest

Can you help me out please?

Thank you

You should not. That is warning for Discourse maintainers that automatically shows when Discourse builds. End users should ignore those.

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.