Happening now | Shopify Community AMA: SEO Basics with 2H Media | Ask your questions now!

Why am I encountering an error when globally installing Shopify CLI?

Solved

Why am I encountering an error when globally installing Shopify CLI?

Lindanarm
Shopify Partner
6 1 0

When following the Documentation on how to get Started with Developing a Shopify Theme I run Into an Error. I'm on Windows and trying to globally install @Shopify/cli with npm. I tried to Use CMD and PWSH version 6 and 7. 

image.png

Here u can see that i have installed all mentioned Requirements, and see the Full Error Output.

Accepted Solution (1)

Lindanarm
Shopify Partner
6 1 0

This is an accepted solution.

I figured It out. The problem lies in the yarn Preinstall Script(Related Issue). Just change the npm script-shell to cmd with 

npm config set script-shell cmd

after the install is done u can revert this with

npm config set script-shell pwsh

I hope this helps anyone else encountering this Propblem.

View solution in original post

Reply 1 (1)

Lindanarm
Shopify Partner
6 1 0

This is an accepted solution.

I figured It out. The problem lies in the yarn Preinstall Script(Related Issue). Just change the npm script-shell to cmd with 

npm config set script-shell cmd

after the install is done u can revert this with

npm config set script-shell pwsh

I hope this helps anyone else encountering this Propblem.