执行:shopify version 时,提示:Version 3.49.3 available!,但是执行:shopify upgrade 时,又提示:no need to upgrade!
1、执行:shopify version 时,提示:Version 3.49.3 available!,但是执行:shopify upgrade 时,又提示:no need to upgrade!。如图1
PS E:\wwwroot\shopify-app\app-partner-20230921> shopify version Current Shopify CLI version: 3.44.1 💡 Version 3.49.3 available! PS E:\wwwroot\shopify-app\app-partner-20230921> shopify upgrade You're on the latest version, 3.49.3, no need to upgrade! PS E:\wwwroot\shopify-app\app-partner-20230921> shopify version Current Shopify CLI version: 3.44.1 💡 Version 3.49.3 available! PS E:\wwwroot\shopify-app\app-partner-20230921>
2、重新命令行全局安装 @shopify/cli 和 @shopify/theme Node.js 包。再次执行:shopify upgrade 时,提示:Upgrading CLI from 3.44.1 to 3.49.3…。符合预期。如图2
PS E:\wwwroot\shopify-theme> yarn global add @shopify/cli @shopify/theme yarn global v1.22.15 [1/4] Resolving packages... warning @shopify/cli > @oclif/plugin-plugins > @oclif/color@1.0.11: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. [2/4] Fetching packages... [3/4] Linking dependencies... warning "@shopify/create-app > @oclif/core > ts-node@10.9.1" has unmet peer dependency "@types/node@*". warning "@shopify/create-app > @oclif/core > ts-node@10.9.1" has unmet peer dependency "typescript@>=2.7". warning "@shopify/cli > zod-to-json-schema@3.21.4" has unmet peer dependency "zod@^3.21.4". warning Workspaces can only be enabled in private projects. [4/4] Building fresh packages... warning Your current version of Yarn is out of date. The latest version is "1.22.19", while you're on "1.22.15". success Installed "@shopify/cli@3.49.3" with binaries: - shopify warning "@shopify/theme@3.49.3" has no binaries Done in 36.93s. PS E:\wwwroot\shopify-theme> ls 目录: E:\wwwroot\shopify-theme Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 2023/06/14 15:25 .idea d----- 2023/07/11 15:42 theme-20230308 PS E:\wwwroot\shopify-theme> shopify version Current Shopify CLI version: 3.44.1 💡 Version 3.49.3 available! PS E:\wwwroot\shopify-theme> shopify upgrade Upgrading CLI from 3.44.1 to 3.49.3... Attempting to upgrade via npm install -g @shopify/cli@latest @shopify/theme@latest... npm WARN deprecated @oclif/color@1.0.11: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. added 143 packages, removed 44 packages, and changed 751 packages in 2m 118 packages are looking for funding run `npm fund` for details ✅ Success! Upgraded Shopify CLI to version 3.49.3. PS E:\wwwroot\shopify-theme>
近期评论