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

在 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 中的要求如下


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。符合要求。


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。符合要求。


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


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 进行更新!


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


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+ 年经验的 PHP / Go 后端工程师,长期关注已有系统维护、Bug 修复、性能优化、服务器排查、WordPress 网站维护和小功能迭代。

如果你的项目遇到以下情况,可以先从一次小问题排查开始合作:

  • ✅ PHP / Laravel / Yii2 老项目无人维护
  • ✅ Go / Gin 后端接口需要排查或优化
  • ✅ WordPress 网站访问慢、报错或插件冲突
  • ✅ Nginx / MySQL / Redis / Linux 服务器异常
  • ✅ CDN / Cloudflare / DNS / HTTPS 配置问题
  • ✅ 需要长期远程技术支持或兼职维护

更多介绍请查看:关于我 & 合作

微信:13980074657
邮箱:shuijingwanwq@gmail.com
Telegram:@shuijingwan
GitHub:https://github.com/shuijingwan

评论

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 … […]

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理