CLI trouble running the command: Shopify theme pull --store {my-store-name-here}

I’m on a Windows 10 machine. I’ve installed npm, Ruby, and Shopify CLI. I verified them in the terminal, and they are all there.

I manually made my Gemfile in my local directory, where I plan on pulling the theme files with this content and no extension:

source 'https://rubygems.org'
gem 'wdm'

Next, I run this command: Shopify theme pull --store {my-store-name-here}, I get this error:

Error coming from bundle install

Command failed with exit code 5: bundle install
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

I then run ‘bundle install’ and get this error:

An error occurred while installing wdm (0.1.1), and Bundler cannot continue.

In Gemfile:
wdm

Then I run this command: ‘gem install wdm’ and now I get this error:

ERROR: Error installing wdm:
ERROR: Failed to build gem native extension.

current directory: C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/wdm-0.1.1/ext/wdm

Does anyone have any ideas? I’ve been at this for hours
Thanks in advance!

Same error here.

This was a tough one, but I figured it out. I went through so many different fixes. I’ll try to remember what I did.

I had to make a new file in the root directory named “Gemfile” with no extension. Then place this inside it:

source ‘https://rubygems.org

I deleted the line containing wdm. The final Gemfile only contains one line: source ‘https://rubygems.org

Then try it again. Let me know if you’re still having trouble.