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.

Cannot skip browser login with SHOPIFY_CLI_DEVICE_AUTH=1

Cannot skip browser login with SHOPIFY_CLI_DEVICE_AUTH=1

jam_chan
Shopify Partner
935 24 193

I install the CLI in my remote Ubuntu 20.04 dev server. There is no browser to login the CLI. Previously, I can use the option `SHOPIFY_CLI_ACCESS_CODE_AUTH=1 npm run dev` to login without problem.

 

When I use the latest CLI, I cannot login anymore. The CLI asks me to press any key and then gives an error:

bennychan:~/abc$ SHOPIFY_CLI_ACCESS_CODE_AUTH=1 npm run dev -- --theme 1234

dev
shopify app dev --theme 1234

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

 

When I press any key, it gives this error:

Error: spawn xdg-open ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:286:19)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

 

How can I fix this issue? Any one has the same issue. I don't understand why the CLI asks me to login suddenly and the option is not working.

 

I've also posted an issue on Github on last Friday. But there is no reply yet.

BYOB - Build Your Own Bundles, SPO - SEO App to research keywords & edit social link preview
Replies 0 (0)