没有不值得去解决的问题,也没有不值得去学习的技术!

在 Windows 10 专业版中安装 Shopify CLI 3.0(基于 Node.js),提前检查相应的要求是否满足

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

1、参考:https://shopify.dev/themes/tools/cli/install#requirements ,在 Windows 中的要求如下

Plaintext

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、Node.js 的版本是:v16.13.1,高于 14.17.0。符合要求。

Plaintext

PS E:\wwwroot\laravel-6> node -v
v16.13.1

3、参考:https://www.shuijingwanwq.com/2022/05/10/6388/ 。第1、2步骤。Ruby+Devkit 的版本是:3.1.X (x64),高于 Ruby+Devkit 3.0。符合要求。

4、Bundler 的版本是:2.3.24,高于 2.3.8。符合要求。

Plaintext

PS E:\wwwroot\laravel-6> bundle -v
Bundler version 2.3.24

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

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

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、npm 的新主要版本可用! 8.1.2 -> 9.4.1。运行 npm install -g npm@9.4.1 进行更新!

Plaintext

PS E:\wwwroot> npm install -g npm@9.4.1

added 1 package, and audited 27 packages in 9s

found 0 vulnerabilities

7、要验证 Shopify CLI 是否已正确安装,运行以下命令。发现版本为 2.x,有待迁移至 3.x。如图2

要验证 Shopify CLI 是否已正确安装,运行以下命令。发现版本为 2.x,有待迁移至 3.x
图2
Plaintext

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

关于作者 · 持续学习与技术实践

我是一名拥有 15 年以上开发经验的技术从业者,自 2013 年起持续运营个人技术博客,记录工作与个人项目中遇到的真实问题,以及解决问题过程中的探索、实践和思考。

除了技术写作,我也在持续开发和维护自己的独立项目,探索新技术和新工具在实际场景中的应用。我始终相信,没有不值得去解决的问题,也没有不值得去学习的技术。

如果这篇文章对你有所帮助,欢迎浏览博客中的其他文章,也欢迎交流技术经验与想法。

关于我  ·  GitHub  ·  邮件联系

评论

2 条对“在 Windows 10 专业版中安装 Shopify CLI 3.0(基于 Node.js),提前检查相应的要求是否满足”的回复

  1. […] Reference:Install Shopify CLI 3.0 (based on Node.js) in Windows 10 Professional, check in advance whether the … […]