[英]Drupal 8 - Unable to upgrade to latest version via composer
我當前的 Drupal 版本:8.7.8。 想升級到8.8.0。
我已經跑了
composer update
composer prohibits drupal/core:8.8.0
drupal/core 8.8.0 requires typo3/phar-stream-wrapper (^3.1.3)
drupal/drupal - requires typo3/phar-stream-wrapper (^2.1.1)
drupal/core 8.8.0 requires doctrine/annotations (^1.4)
drupal/drupal - does not require doctrine/annotations (but v1.2.7 is installed)
所以我跑
composer update drupal/core typo/* doctrine/* --with-dependencies
它給
Package "drupal/core" listed for update is not installed. Ignoring.
Package "typo/*" listed for update is not installed. Ignoring.
Loading composer repositories with package information
Updating dependencies (including require-dev)
The "http://repo.packagist.org/p/sdboyer/gliph%24a386760768df0346abad1d5c7e9e8dcf3eba1dd5aaa86a30ddc548504b0fffa0.json" file could not be downloaded: failed to open stream: Operation timed out
Retrying with degraded mode, check https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode for more info
[Composer\Downloader\TransportException]
The "http://repo.packagist.org/p/sdboyer/gliph%24a386760768df0346abad1d5c7e9e8dcf3eba1dd5aaa86a30ddc548504b0fffa0.json" file could not be downloaded: php_network_getaddresses: geta
ddrinfo failed: nodename nor servname provided, or not known
failed to open stream: php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known
在
composer outdated drupal/*
它給
drupal/admin_toolbar 1.27.0 2.0.0 Provides a drop-down menu interface to the core Drupal Toolbar.
所以我試過了
composer update "drupal/admin_toolbar:^2.0"
Package "drupal/admin_toolbar:^2.0" listed for update is not installed. Ignoring.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package drupal/admin_toolbar (locked at 1.27.0, required as ^2.0) is satisfiable by drupal/admin_toolbar[1.27.0] but these conflict with your requirements or minimum-stability.
我還刪除了composer.lock
文件vendor
文件夾並運行composer clearcache
然后運行composer install
命令。
我不確定是什么導致問題升級。
查看您的composer.json
設置了哪些基本要求。
我認為您有一些非常具體的版本,其中范圍會有所幫助。
從命令行或 json 中顯式設置新版本(范圍)(當然保存舊文件)。 在文件中設置/更新多個版本比通過命令行更容易。
此外,使用--with-dependencies
選項在一次運行中更新多個包可能會有所幫助。
然后你有幫助
composer update --dry-run
它將告訴你會發生什么以及
composer why-not <packet>[:<version>]
告訴您為什么無法安裝數據包(在版本中...)。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.