Shopify CLI Unexpected Error for every action

This morning I updated my Shopify CLI to the latest version (2.11.0), and now nothing works.

Every time I try to use the shopify app/command to do anything, I get this:

X An unexpected error occured.> > To submit an issue include the stack trace.- Running Windows 11.

  • Ruby version is 2.7.5p203.
  • I have tried uninstalling and reinstalling the Shopify CLI.
  • I have re-installed Git and made sure I have a PATH variable that points to git.exe.

Stack trace goes as follows:

Traceback (most recent call last):> 32: from C:/Users/[username]/Software/Ruby27-x64/bin/shopify:23:in `

I see at the end that it is looking for “node”, but when I try to install the node gem, it complains that the data_structure_error gem is not compatible with Ruby past version 2.6.5, which is too low for Shopify CLI.

Not sure what else to do. Any help would be appreciated!

3 Likes

Same issue here. It was fine before I updated CLI. Currently have ticket open.

1 Like

Ditto for me as well, and this is a brand new clean installation of Ruby, Git, and Shopify CLI. The stacktrace is even identical.

Running:

Windows 10

Shopify CLI 2.11.0

Ruby 2.7.5p203

1 Like

Yeah, @iwritesnippets and @WellNaturedHemp - it’s a bummer that this is happening, but I’m glad it’s not just me.

I guess they pushed out a bad CLI update?

If either of you hear back on support tickets, would you mind posting the response/fix here? I’d appreciate it! :slightly_smiling_face:

1 Like

@martincrownover - will do for sure!

1 Like

@martincrownover @WellNaturedHemp I haven’t heard back from support but I kept messing around and eventually got an update notification when I checked for the shopify version. Updated again and it seems fine so far. My working CLI version is 2.11.1

1 Like

Thanks for the update, @iwritesnippets !

I checked and downloaded CLI version 2.11.1 as well - but the issue seems unresolved, and I am still getting the same error, unfortunately.

Did you fiddle with anything else in the interim that might’ve made this version of the CLI work?

1 Like

Yes. I actually completely uninstalled ruby and reinstalled. I did that before as well and it didn’t change anything until after I updated CLI.

1 Like

@martincrownover yes I actually uninstalled ruby completely and reinstalled. I had did that before with no success and until I updated CLI.

2 Likes

Interesting… well, I’ll give that a go and see what happens. :sweat_smile:

Thanks!

Well, I completely uninstalled the CLI and Ruby, reinstalled and still the same issue. I didn’t do a stack trace or anything - I’ve already spent more time on this than is worth it right now, so I’m going to call time of death and move on. If anyone finds another solution or anything, please post a reply and I will make sure to do the same.

Thanks all, good luck.

2 Likes

@ShaunFlo @martincrownover @WellNaturedHemp
have you guys found out any solution for that


because i also got same error
i did not get any solution on internet. Any help would be appreciated!

1 Like

Hello, I had the same Problem like the creator of this Question. I found this via Github:

2 things:

  1. The error message notes you don’t have node installed, and node is required. Others have been experiencing this as well due to some recent changes and we’re working on a fix.
  2. We don’t support Ruby 3.1 just yet; there’s also a fix in the works for the brew formula so it’ll install 3.0 instead.

Because of that, I uninstalled and reinstalled Ruby + Shopify CLI. After that I installed node (until then I did not have node installed)

And now Shopify CLI wors.

Hope that helps a bit.

Greetings, newbie

3 Likes

Thanks for the tip, @gregorsart . I don’t use Node for anything, so I’m not up to speed on how I should go about installing it.

I’ve tried installing it via Ruby, but it fails (as described above). Could you point me in the right direction to get started on that?

1 Like

So I installed Node from the installer on their website https://nodejs.org/en/download/ and just ran Shopify successfully!

When installing, I didn’t choose the option to install any of the extras, just FYI.

Hope that helps!

Brian

2 Likes

I installed Node now as well, and after a computer restart, it seems to work.

Perhaps I missed it, but I do wish the support docs would mention this dependency.

Anyway, I’m glad that this is resolved now. Thank you everyone for all the help!

Make sure you have node, npm and ruby installed, I used a ruby docker image and installed node and npm, also added git, then installed shopify-cli.

And I use this image as the base for most of my shopify projects.

The screenshot above shows these shopify-cli dependencies on the getting-started page https://shopify.dev/apps/getting-started/create

Worked like a charm! I needed to have node installed! Thanks a million :heart: