# Npm run dev error

**URL:** <https://community.shopify.com/t/npm-run-dev-error/251910>\
**Category:** Tools\
**Tags:** troubleshooting\
**Created:** [September 19, 2023, 5:21pm UTC](https://community.shopify.com/t/npm-run-dev-error/251910 "2023-09-19T17:21:30Z")\
**Posts on this page:** 8\
**Page:** 1

## AI-generated summary

Issue: Running “npm run dev” for a Shopify app hangs after choosing a store, then shows an empty error dialog. It previously worked without issues.

Attempts so far: Cleared npm cache, deleted node_modules/package.json, reinstalled dependencies (npm install), and even recreated the app. npm-cache logs provided no useful clues. A screenshot of the empty error dialog is attached and relevant.

Environment details: Another user reproduced the issue on Shopify CLI 3.49.3, Node 18.16.0, npm 9.5.1.

Suggestions/requests from replies:
- Update Shopify CLI to the latest version.
- Specify operating system (Mac or Windows).
- Re-run the command with the --verbose flag and share the output for diagnosis.

Status: Unresolved/ongoing. Key next steps are to confirm OS and CLI version, run with --verbose, and provide the detailed logs to identify the cause.

Notes: npm = Node package manager command; Shopify CLI = Shopify’s command-line interface.

<div class="post-metadata">

**Author:** ![JonThoms327](https://avatars.discourse-cdn.com/v4/letter/j/278dde/32.png) [@JonThoms327](https://community.shopify.com/u/JonThoms327)\
**Post date:** [September 19, 2023, 5:21pm UTC](https://community.shopify.com/t/npm-run-dev-error/251910/1 "2023-09-19T17:21:30Z")

</div>

Whenever I attempt to run the npm run dev command I get stuck after asking which store I would like to use to view my project in and with the info box showing underneath. After maybe 10-15 seconds of waiting, an empty error box appears.

I didn’t have any issues a few months ago and I have tried many basic fixes such as clearing cache, deleting node modules / package.json and running npm install again, and recreating my app from scratch.

My npm-cache logs don’t give any meaningful information either.

![JonThoms327_0-1695143761915.png](https://canada1.discourse-cdn.com/shopifyforum/original/3X/0/4/044f5e14f90efc1f29b6723f7aec0e5fe1f8772d.png)

---

<div class="post-metadata">

**Author:** ![Liam](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/liam/32/223867_2.png) [@Liam](https://community.shopify.com/u/Liam)\
**Post date:** [September 20, 2023, 7:02am UTC](https://community.shopify.com/t/npm-run-dev-error/251910/2 "2023-09-20T07:02:29Z")

</div>

Hi JonThoms327,

Have you tried updating the Shopify CLI to the most recent version?

---

<div class="post-metadata">

**Author:** ![Priyanka\_1](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/priyanka_1/32/38674_2.png) [@Priyanka\_1](https://community.shopify.com/u/Priyanka_1)\
**Post date:** [September 28, 2023, 11:49am UTC](https://community.shopify.com/t/npm-run-dev-error/251910/3 "2023-09-28T11:49:01Z")

</div>

I am getting the same error. I am using Shopify CLI latest version 3.49.3, Node 18.16.0 and npm 9.5.1.

---

<div class="post-metadata">

**Author:** ![ranawaqarahmad](https://avatars.discourse-cdn.com/v4/letter/r/8e7dd6/32.png) [@ranawaqarahmad](https://community.shopify.com/u/ranawaqarahmad)\
**Post date:** [October 12, 2023, 8:26am UTC](https://community.shopify.com/t/npm-run-dev-error/251910/4 "2023-10-12T08:26:30Z")

</div>

Hi, @Priyanka_1 did you solve this issue? If so can you guide me I’m also having same issue with my app.

---

<div class="post-metadata">

**Author:** ![Yoshytr](https://avatars.discourse-cdn.com/v4/letter/y/ac8455/32.png) [@Yoshytr](https://community.shopify.com/u/Yoshytr)\
**Post date:** [October 15, 2023, 7:14pm UTC](https://community.shopify.com/t/npm-run-dev-error/251910/5 "2023-10-15T19:14:50Z")

</div>

Pudiste resolverlo?

---

<div class="post-metadata">

**Author:** ![marcellin-dev](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@marcellin-dev](https://community.shopify.com/u/marcellin-dev)\
**Post date:** [December 14, 2023, 10:37am UTC](https://community.shopify.com/t/npm-run-dev-error/251910/6 "2023-12-14T10:37:05Z")

</div>

Hello [email removed][JonThoms327](https://community.shopify.com/user/1558597)

please do you solve this i have the same issues on my app.

---

<div class="post-metadata">

**Author:** ![Liam](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/liam/32/223867_2.png) [@Liam](https://community.shopify.com/u/Liam)\
**Post date:** [December 14, 2023, 3:24pm UTC](https://community.shopify.com/t/npm-run-dev-error/251910/7 "2023-12-14T15:24:16Z")

</div>

Are you running the CLI on Mac or Windows?

---

<div class="post-metadata">

**Author:** ![Liam](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/liam/32/223867_2.png) [@Liam](https://community.shopify.com/u/Liam)\
**Post date:** [December 15, 2023, 9:29am UTC](https://community.shopify.com/t/npm-run-dev-error/251910/8 "2023-12-15T09:29:06Z")

</div>

Also if you could run the command with the `--verbose` flag and share the output, we can get a better view of what might be causing this.
