What's your biggest current challenge? Have your say in Community Polls along the right column.
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.

Npm run dev not working

Solved

Npm run dev not working

AGab
Shopify Partner
14 0 2

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?

Accepted Solution (1)

ShopifyDevSup
Shopify Staff
1453 238 525

This is an accepted solution.

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

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Replies 2 (2)

ShopifyDevSup
Shopify Staff
1453 238 525

This is an accepted solution.

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

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

AGab
Shopify Partner
14 0 2

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