Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

command app:dev not found

Solved

command app:dev not found

pierreturnbull
Shopify Partner
7 1 3

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 ?

Accepted Solutions (2)
pierreturnbull
Shopify Partner
7 1 3

This is an accepted solution.

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.

View solution in original post

Carsten_A
Shopify Partner
16 2 6

This is an accepted solution.

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

View solution in original post

Replies 5 (5)

sirev
Shopify Partner
15 4 3

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 ?

pierreturnbull
Shopify Partner
7 1 3

This is an accepted solution.

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.

Carsten_A
Shopify Partner
16 2 6

This is an accepted solution.

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

Ilya_z
Shopify Partner
2 0 1

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

depict_daniel
Shopify Partner
1 0 0

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