How to fix the CLI error 'No organization found'?

Hello,

I keep getting this error even after I logged out and tried logging in with command like

npm run dev 
npm run dev --reset 
npm run dev -- --reset

There’s one more thing. I tried this both in windows and WSL but I got the same error in both environments. In WSL I checked my Shopify CLI version and and it says

Current Shopify CLI version: 3.28.0
 :light_bulb:  Version 3.46.1 available!

then I tried to update with shopify upgrade and it says

You're on the latest version, 3.46.1, no need to upgrade!

Please I’d appreciate some assistance to fix this issue.

I am having the exact same issue. In the attached screenshot, you can see that I’m logged into my organization. I have tried all of the --reset options, as well as logging out/logging in

@shopify/app”: “3.46.5”,
@shopify/cli”: “3.46.5”

1 Like

anyone find the solution to this? i m having the same issue.

Actually, saw in another thread. all i needed to do is Shopify auth logout and then re run npm run dev. Fixed my issue