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.