簡體   English   中英

Drupal 8 - 無法通過作曲家升級到最新版本

[英]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>]告訴您為什么無法安裝數據包(在版本中...)。

嘗試刪除您的 /vendor 文件夾並重新安裝。

根據幫助文檔,在 Composer 8.8.0 及更高版本升級時可能會彈出一些新問題。

通過 Composer 更新核心 - Drupal.org

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM