Why is my CLI run theme dev on Shopify failing?

Topic summary

A developer is encountering a DNS resolution error when attempting to run shopify theme dev command.

The Issue:

  • The CLI prompts for Shopify Partners login and opens a browser authentication page
  • After login, the command fails with getaddrinfo ENOTFOUND accounts.shopify.com error
  • The error indicates the system cannot resolve the domain name for accounts.shopify.com

Technical Details:

  • Error occurs during OAuth token request to https://accounts.shopify.com/oauth/token
  • The failure happens at the DNS lookup stage (getaddrinfo)
  • Stack trace points to Node.js DNS resolution issues

Likely Causes:
This typically suggests network connectivity problems, DNS configuration issues, firewall/proxy blocking, or potential VPN interference preventing access to Shopify’s authentication servers.

Status: The issue remains unresolved with no responses or solutions provided yet.

Summarized with AI on November 11. AI used: claude-sonnet-4-5-20250929.

Shopify CLI run

shopify theme dev

login on website, cli response

❯ shopify theme dev

To run this command, log in to Shopify Partners.
 Press any key to open the login page on your browser

Auto-open timed out. Open the login page: Log in to Shopify Partners ( http://accounts.shopify.com/oauth/authorize?xxx )

╭─ error ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ request to https://accounts.shopify.com/oauth/token?xxx  failed, reason: getaddrinfo ENOTFOUND accounts.shopify.com │
│ │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

╭─ error ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ getaddrinfo ENOTFOUND notify.bugsnag.com │
│ │
│ To investigate the issue, examine this stack trace: │
│ at onlookupall [as oncomplete] (node:dns:118) │
│ │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Error: getaddrinfo ENOTFOUND notify.bugsnag.com
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26)