-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: CLI command "shopify theme list" returns error #1111
Comments
It seems your terminal is not being properly detected as TTY. I'll look into it and see if I can reproduce. |
Alright, I've managed to reproduce. I've found that it works fine in cmd but not Git Bash, and surprisingly also found that an interactive Node prompt in Git Bash is TTY. So it has to do with the way npm global instals work not playing nicely with git bash. Note this works: So it seems something in the invocation is making the resulting process non-TTY. |
This was quite the rabbit hole. Bottom line, Node doesn't play nicely with Windows terminal emulators. You can work around this with the following alias: alias shopify="winpty $(which shopify).cmd" Hope this workaround solves it for you, let me know! |
Thank you very much. It worked for me. i was too frustrated for the error. finally solved. Thank you again. |
Since the issue seems to be on node and there is a workaround for it, i'll close it. Feel free to open a new issue if there are new problems with non-TTY terminals and windows. |
I got same problem running shopify theme dev command on git bash. but when I tried using cmd it works. |
@obligado86 see my comment above. @pablogiralt I'm not sure what's causing this, please open a new issue with full details and we'll do our best to help! |
Please confirm that you have:
In which of these areas are you experiencing a problem?
App
Expected behavior
It should have returned a list of the available themes
Actual behavior
Returned an error, also gave me a login page key return prompt which didn;t complete or allow me to use as the error terminated the command.
Stack trace
Reproduction steps
Operating System
windows 11
Shopify CLI version (check your project's
package.json
if you're not sure)Current Shopify CLI version: 3.33.0
Shell
Git Bash
Node version (run
node -v
if you're not sure)v14.19.3
What language and version are you using in your application?
No response
The text was updated successfully, but these errors were encountered: