DEV Community

max-bruhn
max-bruhn

Posted on

4 3

Installing Shopify CLI on Windows 10 via Subsystem for Linux (Ubuntu)

I recently had to install the Shopify CLI on a fresh windows install and went thought the official Shopify documentation, which let to some problems.

I will just point out how I eventually managed to get it running.

First of all I am trying to get it running using the Linux Subsystem.

I have the Terminal running, set to Ubuntu (Settings/Default Profile)

Image description

First I installed Ruby from the Ruby website via the Windows installer.

The Shopify Documentation specifically mentions you can install Ruby or Ruby + Dev Kit.

Now when I tried to run "sudo gem install shopify-cli" I got the following error:

Image description

To fix it I ran the following commands:

sudo apt update
sudo apt-get install gcc
sudo apt-get install ruby-dev
sudo apt install libc6=2.31-0ubuntu9.2 libc-bin=2.31-0ubuntu9.2
Enter fullscreen mode Exit fullscreen mode

and then finally I could run "sudo gem install shopify-cli" successfully

Jetbrains image

Build Secure, Ship Fast

Discover best practices to secure CI/CD without slowing down your pipeline.

Read more

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay