Shopify CLI “shopify node serve” fails on Windows 10 during ngrok setup with error: “System call failed: tar -xf …/shopify/ngrok.zip.” The tool appears to download a ZIP and attempt to extract it with tar, which may be misapplied on Windows.
Key context: ngrok is a tunneling utility used by the CLI to expose a local app; tar is a Unix archiver/extractor. The failure happens after scaffolding a project with “shopify node create.”
Actions and guidance: A suggestion was made to file an issue on the Shopify CLI GitHub repository. Multiple users report a workaround by manually handling ngrok files.
Workarounds reported:
Manually unzip the downloaded ngrok.zip in C:\Users[User]\AppData\Local\shopify and then rerun “shopify node serve.”
Alternatively, download ngrok from the official site, extract it, and place ngrok.exe into C:\Users[User]\AppData\Local\shopify.
One user on CLI 2.7.x succeeded by placing ngrok.zip manually; another on CLI 2.7.1 says the workaround did not work.
Status: No official fix posted; mixed results across CLI 2.7.x. The issue appears ongoing with suggested manual ngrok setup and a recommendation to report it.
Hi, I’m trying out the Shopify CLI. I’m going through this tutorial. I’m using Windows 10.
Running “shopify node create” scaffolds the new project but when I run “shopify node serve” I get this error:
√ curl @ C:/WINDOWS/System32/curl.EXE
√ tar @ C:/Rtools/bin/tar.EXE
- Installing ngrok...
X System call failed: tar -xf C:/[...]/shopify/ngrok.zip
(I inserted the “[..]” to hide personal info in the folder name)
The “…/shopify/ngrok.zip” DOES exist. I tried deleting it and running “shopify node serve” again but same thing happens.
Based on this. I think “shopify node serve” is downloading a zip – thinking I’m on MAC – and then since I’m on Windows, it tries to tar(untar?) the zip file.
Hi, thanks for the reply. In case someone has a similar problem, I manually unzipped the file and was able to use the command with no problems after than.
Hi Thanks for the question.! Yes downloading the ngrok from the official site and extracting it and place the ngrok.exe into the shopify folder (C:\Users[YourUserName]\AppData\Local\shopify) will work.