DEV Community


Posted on

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

Top comments (0)