There is no problem not worth solving, and no technology not worth learning!

Install Shopify CLI 3.0 (based on Node.js) in Windows 10 Professional, check in advance whether the corresponding requirements are met

要为主题安装 Shopify CLI,请使用命令行全局安装 @shopify/cli 和 @shopify/theme Node.js 程序包

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

要为主题安装 Shopify CLI,请使用命令行全局安装 @shopify/cli 和 @shopify/theme Node.js 程序包
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

要验证 Shopify CLI 是否已正确安装,运行以下命令。发现版本为 2.x,有待迁移至 3.x
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


Need long-term technical maintenance or remote troubleshooting?

I am a PHP / Go backend engineer with 15+ years of experience, focused on existing system maintenance, bug fixing, performance optimization, server troubleshooting, WordPress maintenance, and small feature iterations.

If your project is facing any of the following issues, we can start with a small troubleshooting task first:

  • ✅ PHP / Laravel / Yii2 legacy systems without active maintenance
  • ✅ Go / Gin backend APIs that need troubleshooting or optimization
  • ✅ Slow, broken, or unstable WordPress websites
  • ✅ Nginx / MySQL / Redis / Linux server issues
  • ✅ CDN / Cloudflare / DNS / HTTPS configuration problems
  • ✅ Long-term remote technical support or part-time maintenance

More details: About Me & Collaboration

WeChat: 13980074657
Email: shuijingwanwq@gmail.com
Telegram: @shuijingwan
GitHub: https://github.com/shuijingwan

评论

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.