# Command app:dev not found

**URL:** <https://community.shopify.com/t/command-app-dev-not-found/136655>\
**Category:** Tools\
**Created:** [July 20, 2022, 3:15pm UTC](https://community.shopify.com/t/command-app-dev-not-found/136655 "2022-07-20T15:15:35Z")\
**Posts on this page:** 6\
**Page:** 1

## AI-generated summary

Main issue: After moving a Shopify app project to a new macOS device, running “npm run dev” fails with “command app:dev not found,” indicating Shopify CLI commands aren’t recognized.

Observed behavior: On macOS, only a limited set of Shopify app commands appears (connect, create, deploy, open, serve, tunnel). Running “shopify app serve” errors with “you’re not in a Shopify project,” though the same project worked on Windows.

Workarounds/Fixes:
- Create a new Shopify app project with current tooling, then replace its code with the old project’s code; this allowed development to continue.
- Upgrade Shopify CLI/tooling to ~3.3.3, delete node_modules, and reinstall dependencies; after bumping versions, “yarn dev” (or “yarn run shopify app”) works.
- Install updated packages for the CLI and app modules at ~3.3.3 to resolve the missing command.

Additional context: For users on Yarn Berry (Yarn v3/v4), an upstream oclif/core issue may cause command resolution problems; a GitHub issue is referenced.

Status: Effectively resolved by upgrading Shopify CLI to ~3.3.3; Yarn Berry users should check the linked oclif issue for ongoing compatibility updates.

<div class="post-metadata">

**Author:** ![pierreturnbull](https://avatars.discourse-cdn.com/v4/letter/p/6f9a4e/32.png) [@pierreturnbull](https://community.shopify.com/u/pierreturnbull)\
**Post date:** [July 20, 2022, 3:15pm UTC](https://community.shopify.com/t/command-app-dev-not-found/136655/1 "2022-07-20T15:15:35Z")

</div>

Hello,

I started developing a Shopify application during the last weeks. It worked fine.

Today, I changed my device. On the new device, I downloaded from GitHub the same project I had been working on earlier. However when I run “npm run dev”, as I had been used to previously, I get an error : “command app:dev not found”.

I am unable to understand the problem. I understand that the Shopify CLI tool does not work, because one of its commands is not recognized anymore, but I can’t understand why this happens.

Any advice ?

---

<div class="post-metadata">

**Author:** ![sirev](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/sirev/32/319908_2.png) [@sirev](https://community.shopify.com/u/sirev)\
**Post date:** [July 21, 2022, 4:39pm UTC](https://community.shopify.com/t/command-app-dev-not-found/136655/2 "2022-07-21T16:39:59Z")

</div>

same problem here, I’ve tried to run on MacOS after installing shopify-cli but it says that shopify app has only some commands available like: connect, create, deploy, open, serve and tunnel  
tried to run: shopify app serve, resulting into an error: you’re not in a shopify project…but it worked on Windows, means you can’t initialize a project on Windows and then continue developing it on MacOS ?

---

<div class="post-metadata">

**Author:** ![pierreturnbull](https://avatars.discourse-cdn.com/v4/letter/p/6f9a4e/32.png) [@pierreturnbull](https://community.shopify.com/u/pierreturnbull)\
**Post date:** [July 22, 2022, 7:16am UTC](https://community.shopify.com/t/command-app-dev-not-found/136655/3 "2022-07-22T07:16:05Z")

</div>

Not sure exactly of what it means but I managed to make it work, still on mac. I created a new Shopify project and replaced its code with the code of my previous project that I was unable to launch. Then after doing this code replacement I was able to launch the second project and keep working on it.

This solved the problem for me, as a work-around.

---

<div class="post-metadata">

**Author:** ![Carsten\_A](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@Carsten\_A](https://community.shopify.com/u/Carsten_A)\
**Post date:** [July 22, 2022, 3:44pm UTC](https://community.shopify.com/t/command-app-dev-not-found/136655/4 "2022-07-22T15:44:25Z")

</div>

I fixed this by simply bumping up the CLI version.

Let me guess, you were using 3.0.24 like me? I deleted my node\_modules, bumped the version to `3.3.3`, re-installed the packages and now `yarn dev` (`yarn run shopify app`) works.

I guess that’s why creating a new app worked - it’s now served with the `3.3.3` CLI.

 ![Skærmbillede 2022-07-22 kl. 17.36.16.png](https://canada1.discourse-cdn.com/shopifyforum/original/3X/2/4/240cc3a7d586432cef42712798f57fe96a0fefd7.png)

---

<div class="post-metadata">

**Author:** ![Ilya\_z](https://avatars.discourse-cdn.com/v4/letter/i/4491bb/32.png) [@Ilya\_z](https://community.shopify.com/u/Ilya_z)\
**Post date:** [August 13, 2022, 2:53pm UTC](https://community.shopify.com/t/command-app-dev-not-found/136655/5 "2022-08-13T14:53:57Z")

</div>

It is my case, thank you.  
So, npm i @Shopify_77 /app@~3.3.3 @Shopify_77 /cli@~3.3.3 solves the problem

---

<div class="post-metadata">

**Author:** ![depict\_daniel](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/depict_daniel/32/385506_2.png) [@depict\_daniel](https://community.shopify.com/u/depict_daniel)\
**Post date:** [October 3, 2023, 4:44pm UTC](https://community.shopify.com/t/command-app-dev-not-found/136655/6 "2023-10-03T16:44:28Z")

</div>

If someone else gets here when trying to develop a shopify app with yarn berry / yarn 3 or yarn 4, this might be the issue you’re encountering: [https://github.com/oclif/core/issues/806](https://github.com/oclif/core/issues/806)
