Cannot find package.json

AI-generated summary

Cannot find package.json: Nasser is encountering an error when trying to update browserslist-db using npx update-browserslist-db@latest. The error indicates that package.json cannot be found. However, Falco advises that end users should ignore the warning, as it is intended for Discourse maintainers and is automatically shown during the build process.

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 · GitHub

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.