# Cannot find package.json

**URL:** https://meta.discourse.org/t/cannot-find-package-json/258924
**Category:** Self-hosting
**Created:** [March 21, 2023, 5:03pm UTC](https://meta.discourse.org/t/cannot-find-package-json/258924 "2023-03-21T17:03:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Nasser](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nasser/32/428723_2.png) [@Nasser](https://meta.discourse.org/u/Nasser)
#### Post date: [March 21, 2023, 5:03pm UTC](https://meta.discourse.org/t/cannot-find-package-json/258924/1 "2023-03-21T17:03:55Z")

</div>

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](https://github.com/browserslist/update-db#readme)

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

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [March 21, 2023, 5:28pm UTC](https://meta.discourse.org/t/cannot-find-package-json/258924/2 "2023-03-21T17:28:29Z")

</div>

> [@Nasser](#):
>
> I am not sure how can I update-browserslist-db@latest

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

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [April 20, 2023, 5:29pm UTC](https://meta.discourse.org/t/cannot-find-package-json/258924/3 "2023-04-20T17:29:19Z")

</div>

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