windows - Windows 上的 Composer 安装在修补时停止
问题描述
有谁知道为什么在“作曲家安装”中不断发生这种情况?以及如何解决这个问题?
C:\Users\1337\Desktop\wafasalaf>composer install
Gathering patches from patch file.
Loading composer repositories with package information
Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Updating dependencies (including require-dev)
Package operations: 152 installs, 0 updates, 0 removals
Gathering patches from patch file.
Gathering patches for dependencies. This might take a minute.
- Installing drupal/core (8.9.16): Loading from cache
- Applying patches for drupal/core
modules/patches/block-remove-logger-warning.patch (Remove not found blocks warning.)
Could not apply patch! Skipping. The error was: Cannot apply patch modules/patches/block-remove-logger-warning.patch
[Exception]
Cannot apply patch Remove not found blocks warning. (modules/patches/block-remove-logger-warning.patch)!
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [--with-dependencies] [--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...
解决方案
这已解决,我在未识别补丁的 Windows 上遇到问题。
我所要做的就是将 patch.exe 的路径链接放在我的系统环境中(如果你有 git for windows 它已经安装并且你会在“C:\Program Files\Git\usr\bin”中找到它) .
推荐阅读
- java - BigDecimal 的四舍五入
- r - 尝试运行两个几乎相同的 pgls 模型时,一个模型的错误消息
- php - 将 json 转换为多维 PHP 数组
- java - 无论如何在java中的if-else语句之外执行代码?
- javascript - 我在我的 Windows PC 中使用 vscode 中的 Live 服务器扩展时遇到了困难
- javascript - 单击时生成路径
- 使用 jQuery 列出
- qt - Qt蓝牙:获取电池电量值通知
- android - 如何将 JSON 数据从 Activity 传递到 Fragment
- ssl - 生成没有配置文件的 OpenSSL CRL 文件
- r - 将 JSON 从文件读取到 tidyjson