-
Notifications
You must be signed in to change notification settings - Fork 130
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]: shopify app init just hangs, it's neither completing nor throwing an error #4869
Comments
Hi @i-haz-teh-codez, seems like the CLI hangs during Also, could you try maybe with a different package manager and/or node version? |
Ah, there's a Also what's the point of switching to a different package manager when it's supposed to work with LTS Node? By the way, I got it to work with Node 20.18.0 but surely that's not ideal — it should be working with the latest stable Node 22.11.0? Anyway, here's the |
Just trying to pin down where the issue is. I tried with node 22, npm and linux and it worked for me 🤔 I assume that running Could you check in the folder from the verbose log: Sorry I don't have more concrete answers, but I can't reproduce the issue |
OK. I reported that I actually got it working with a lower version of Node. Also I mentioned that's not ideal since I'm supposed to simply run But now I have to use tricks like downgrading Node or setting things up manually in I actually opened a new terminal window and attempted the command again minutes after your first comment. Well, that command is still hung up at "Installing dependencies with npm ..." even at this very moment, near 3 hours later. |
Update: In my last comment I mentioned I ran the command again in another terminal window and left it hung up there. I came back to check and apparently the command exited 9 hours later. Here are the logs, and notice I left the command hung up at 12:31 and received a response at 21:11. Again, I was only reporting a bug. The CLI hanging and responding 9 hours later obviously isn't the intended behavior. |
The code you're running is here: cli/packages/app/src/cli/services/init/init.ts Lines 173 to 184 in 2450a80
cli/packages/app/src/cli/services/init/template/npm.ts Lines 58 to 76 in 2450a80
It looks like If you'd like to confirm, you can do this again and scan running processes for |
Please confirm that you have:
In which of these areas are you experiencing a problem?
App
Expected behavior
Command
shopify app init
should either set up a new app or return an error.Actual behavior
The command just hangs. No response for 30+ minutes. Neither a new app is set up nor an error returned.
I asked for assistance on StackOverflow. Here's the link to the question.
Verbose output
See 'Actual behavior' above. No output is being returned.
Reproduction steps
shopify app init
Operating System
Ubuntu 22.04
Shopify CLI version (check your project's
package.json
if you're not sure)3.70.0
Shell
bash
Node version (run
node -v
if you're not sure)22.11.0
What language and version are you using in your application?
Node 22.11.0
The text was updated successfully, but these errors were encountered: