Install Shopify CLI in Windows 10 Professional (based on RubyInstaller for Windows installation Ruby)
1. To install and run Shopify CLI, you need to install the following software on your computer: Ruby or Ruby+Devkit using RubyInstaller for Windows 2.7+ version, Git. Reference:https://shopify.dev/themes/getting-started/create#step-1-install-shopify-cli. as shown in Figure 1
2. Now that Git has been installed on the computer, and Ruby has not been installed, I finally decided to install Ruby+DevKit 3.1.x (x64), download and install rubyInstaller-devkit-3.1.1-1-x64.exe. as shown in Figure 2
3. Install Shopify CLI and execute the command: gem install shopify-cli. as shown in Figure 3
PS C:\Windows\system32> gem install shopify-cli
Fetching ast-2.4.2.gem
Fetching parser-3.1.2.0.gem
Fetching nokogiri-1.13.4-x64-mingw-ucrt.gem
Fetching liquid-5.3.0.gem
Fetching theme-check-1.10.2.gem
Fetching ffi-1.15.5-x64-mingw-ucrt.gem
Fetching rb-inotify-0.10.1.gem
Fetching rb-fsevent-0.11.1.gem
Fetching shopify-cli-2.15.6.gem
Fetching listen-3.7.1.gem
Fetching concurrent-ruby-1.1.10.gem
Fetching bugsnag-6.24.2.gem
Successfully installed ast-2.4.2
Successfully installed parser-3.1.2.0
Successfully installed nokogiri-1.13.4-x64-mingw-ucrt
Successfully installed liquid-5.3.0
Successfully installed theme-check-1.10.2
Successfully installed ffi-1.15.5-x64-mingw-ucrt
Successfully installed rb-inotify-0.10.1
Successfully installed rb-fsevent-0.11.1
Successfully installed listen-3.7.1
Successfully installed concurrent-ruby-1.1.10
Successfully installed bugsnag-6.24.2
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
Successfully installed shopify-cli-2.15.6
Parsing documentation for ast-2.4.2
Installing ri documentation for ast-2.4.2
Parsing documentation for parser-3.1.2.0
Installing ri documentation for parser-3.1.2.0
Parsing documentation for nokogiri-1.13.4-x64-mingw-ucrt
Installing ri documentation for nokogiri-1.13.4-x64-mingw-ucrt
Parsing documentation for liquid-5.3.0
Installing ri documentation for liquid-5.3.0
Parsing documentation for theme-check-1.10.2
Installing ri documentation for theme-check-1.10.2
Parsing documentation for ffi-1.15.5-x64-mingw-ucrt
Installing ri documentation for ffi-1.15.5-x64-mingw-ucrt
Parsing documentation for rb-inotify-0.10.1
Installing ri documentation for rb-inotify-0.10.1
Parsing documentation for rb-fsevent-0.11.1
Installing ri documentation for rb-fsevent-0.11.1
Parsing documentation for listen-3.7.1
Installing ri documentation for listen-3.7.1
Parsing documentation for concurrent-ruby-1.1.10
Installing ri documentation for concurrent-ruby-1.1.10
Parsing documentation for bugsnag-6.24.2
Installing ri documentation for bugsnag-6.24.2
Parsing documentation for shopify-cli-2.15.6
Installing ri documentation for shopify-cli-2.15.6
Done installing documentation for ast, parser, nokogiri, liquid, theme-check, ffi, rb-inotify, rb-fsevent, listen, concurrent-ruby, bugsnag, shopify-cli after 61 seconds
12 gems installed
4. In the terminal, navigate to the working directory of the DAWN to clone. Enter the following command. Confirm that the Shopify CLI has been installed correctly. as shown in Figure 4
PS E:\wwwroot>
┏━━ Cloning https://github.com/Shopify/dawn.git into dawn-20220420-1… ━━━━━━━━━
┃ 100%
┗━━ √ Cloned into dawn-20220420-1 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ (17.06s) ━━━
PS E:\wwwroot>
PS E:\wwwroot>
PS E:\wwwroot> shopify theme init
? Theme name
> dawn-20220420-1
5. Enter the directory: DAWN-20220420-1, check the file list. as shown in Figure 5
PS E:\wwwroot> cd .\dawn-20220420-1\
PS E:\wwwroot\dawn-20220420-1> ls
目录: E:\wwwroot\dawn-20220420-1
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 2022/4/20 9:34 .vscode
d----- 2022/4/20 9:34 assets
d----- 2022/4/20 9:34 config
d----- 2022/4/20 9:34 layout
d----- 2022/4/20 9:34 locales
d----- 2022/4/20 9:34 sections
d----- 2022/4/20 9:34 snippets
d----- 2022/4/20 9:34 templates
-a---- 2022/4/20 9:34 127 .gitignore
-a---- 2022/4/20 9:34 76 .theme-check.yml
-a---- 2022/4/20 9:34 1423 LICENSE.md
-a---- 2022/4/20 9:34 7187 README.md
-a---- 2022/4/20 9:34 3521 release-notes.md
-a---- 2022/4/20 9:34 691 translation.yml
PS E:\wwwroot\dawn-20220420-1>




