Npm run dev not working

Hi,

Through the app development I am used to running “npm run dev” as mentioned on the Shopify tutorial. It usually asked me to press any key to log in to my partners account and when I pressed any key, it took me to the login page and eerything worked well.

Recently I am being asked to create a Shopify Partners organization through the cli and when I press any key it takes me to a signup page. I am not getting any login option to an existing shopify partners account. Even when I create a new account as it looks like it wants me to, I am getting an error message on the cli that says:

"

Couldn’t find your Shopify Partners organization
Have you confirmed your accounts from the emails you received?

"

After I get a confirmation email that I created the account of course.

How can I fix that?

Hi AGab,

When testing the Shopify CLI versions 3.20.1 and 3.23.0 the ‘npm run dev’ command is working ok when connecting to the Partner Dash, so some ideas that come to mind assuming you’re using the 3.x series of the CLI are:

  • run the command ‘npm run shopify auth logout’ to close any existing login sessions in the CLI and start fresh before trying ‘npm run dev’ again
  • to update the CLI to the latest version use the command ‘npm run shopify – upgrade’
  • post a GitHub issue with more specific details in the official public support repository for the CLI 3.x series at https://github.com/Shopify/cli/issues
2 Likes

After facing the same issue again, I can confirm that running ‘npm run shopify auth logout’ has solved the problem. Thank you!

1 Like