Shopify CLI command hanging

Hello, i’m just working on a app extension project. After few days, i back to this project, but i cant run shopify app dev but others works.

I ve been stuck here for a long times. I tried to reinstall CLI but its not working.

Does shopify cache clear help?

I got Warning: Invalid hook call. when doing this

Can you please provide the versions of these?

  • Shopify CLI
  • Node.js
  • React

im using the latest version of Shopify CLI (i already tried lower versions like 3.50 or 3.42) and
Node: v20.11.1
React: v18

Hi @BrownTheFlower, I see it gets stuck on dependency installation. When that displays, it means the CLI is waiting for dependency installation to finish, so the CLI isn’t really in control.

Have you tried installing dependencies without the CLI? It’s possible that npm install (or the command for your package manager) is simply hanging for whatever reason, and you’ll have to figure out why.

You can also try running the CLI with the --verbose flag to see if any additional details emerge about where it’s getting stuck.

2 Likes

omg, im stupid. i’m reinstall package json and it works.
thank you!!