dependencies 标签归档 - 永夜 https://www.shuijingwanwq.com/tag/dependencies/ 没有不值得去解决的问题,也没有不值得去学习的技术! Fri, 14 Aug 2026 02:21:13 +0000 zh-Hans hourly 1 https://wordpress.org/?v=7.1.3 https://media.shuijingwanwq.com/2026/05/logo-150x150.png dependencies 标签归档 - 永夜 https://www.shuijingwanwq.com/tag/dependencies/ 32 32 在 运行:npm run shopify version 时,提示:Running this command will add the dependency to the workspace root rather than the workspace itself https://www.shuijingwanwq.com/2024/01/05/8337/ Fri, 05 Jan 2024 01:26:15 +0000 https://www.shuijingwanwq.com/?p=8337 本文记录了解决 npm run deploy 报错提示需升级 CLI 版本的问题。在运行 npm run shopify version 时遇到依赖添加位置提示,最终通过直接编辑 package.json 文件修改配置,执行 yarn install 重新安装依赖项,再次查看版本确认已升级为最新版本。

在 运行:npm run shopify version 时,提示:Running this command will add the dependency to the workspace root rather than the workspace itself最先出现在永夜。

]]>
在执行 composer require 后,在 composer.lock 中,plugin-api-version 从 2.3.0 变化为 2.2.0 https://www.shuijingwanwq.com/2023/06/01/7679/ Thu, 01 Jun 2023 01:51:50 +0000 https://www.shuijingwanwq.com/?p=7679 执行 composer require 后,发现 composer.lock 文件中的 plugin-api-version 从 2.3.0 退变为 2.2.0。考虑到该属性对确保依赖项和插件兼容性的重要性,尝试通过执行 composer self-update 更新 Composer 版本。再次执行命令后,composer.lock 中的 plugin-api-version 保持稳定,不再发生意外变化,成功解决了版本回退问题。

在执行 composer require 后,在 composer.lock 中,plugin-api-version 从 2.3.0 变化为 2.2.0最先出现在永夜。

]]>
执行命令:composer install 时,报错:Script Google\Task\Composer::cleanup handling the pre-autoload-dump event terminated with an exception https://www.shuijingwanwq.com/2022/01/12/5700/ Wed, 12 Jan 2022 01:16:25 +0000 https://www.shuijingwanwq.com/?p=5700 执行 composer install 命令时出现 Script Google\Task\Composer::cleanup 报错,经排查是因为 Google API 客户端包含大量服务,默认清理脚本在特定环境中无法正常运行。文章介绍了通过编辑 composer.json 文件,删除 scripts 中 pre-autoload-dump 对应的 Google\Task\Composer::cleanup 配置项来解决该问题。修改后执行 composer update 不再报错,并提到此问题仅在容器环境中出现,本地 Windows 主机不存在异常。

执行命令:composer install 时,报错:Script Google\Task\Composer::cleanup handling the pre-autoload-dump event terminated with an exception最先出现在永夜。

]]>
Composer detected issues in your platform:Your Composer dependencies require a PHP version “>= 7.3.0”. https://www.shuijingwanwq.com/2021/10/22/5390/ Fri, 22 Oct 2021 06:35:11 +0000 = 7.3.0]]> https://www.shuijingwanwq.com/?p=5390 在部署项目到华为云ARM架构服务器时,因基础镜像导致PHP版本变更为7.2.20,与Composer依赖要求的7.3.0版本冲突。解决方法是修改composer.json将PHP版本要求降低至7.2.0,同时将本地环境切换至7.2.14以保持一致。随后删除vendor目录和composer.lock文件,重新执行composer install,最终健康检查脚本正常响应,问题解决。

Composer detected issues in your platform:Your Composer dependencies require a PHP version “>= 7.3.0”.最先出现在永夜。

]]>