Install Shopify CLI 3.0 (based on Node.js) in Windows 10 Professional, check in advance whether the corresponding requirements are met
1. Reference:https://shopify.dev/themes/tools/cli/install#requirements, the requirements in Windows are as follows
Node.js 14.17.0 or higher
Ruby+Devkit 3.0, installed using RubyInstaller for Windows
(select the MSYS2 component and the MSYS2 base installation option)
Git
Bundler 2.3.8 or higher
2. The version of Node.js is: V16.13.1, which is higher than 14.17.0. meet the requirements.
PS E:\wwwroot\laravel-6> node -v
v16.13.1
3. Reference:https://www.shuijingwanwq.com/2022/05/10/6388/. Steps 1 and 2. The version of Ruby+DevKit is: 3.1.x (x64), which is higher than Ruby+DevKit 3.0. meet the requirements.
4. The version of Bundler is: 2.3.24, which is higher than 2.3.8. meet the requirements.
PS E:\wwwroot\laravel-6> bundle -v
Bundler version 2.3.24
5. To install the Shopify CLI for the theme, use the command line to install the @shopify/cli and @shopify/theme node.js package globally. as shown in Figure 1
PS E:\wwwroot> npm install -g @shopify/cli @shopify/theme
added 824 packages, and audited 825 packages in 2m
93 packages are looking for funding
run `npm fund` for details
3 moderate severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
npm notice
npm notice New major version of npm available! 8.1.2 -> 9.4.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.4.1
npm notice Run npm install -g npm@9.4.1 to update!
npm notice
6. The new major version of NPM is available! 8.1.2 -> 9.4.1. Run npm install -g npm@9.4.1 for updates!
PS E:\wwwroot> npm install -g npm@9.4.1
added 1 package, and audited 27 packages in 9s
found 0 vulnerabilities
7. To verify that the Shopify CLI is installed correctly, run the following command. It is found that the version is 2.x and needs to be migrated to 3.x. as shown in Figure 2
PS E:\wwwroot> shopify version
* A new version of Shopify CLI is available! You have version 2.15.6 and the latest version is 2.34.0.
To upgrade, follow the instructions for the package manager you’re using:
https://shopify.dev/tools/cli/troubleshooting#upgrade-shopify-cli
2.15.6

