Semantic MediaWiki requer onoi / callback-container, mas não pode ser instalado

1

Eu tento instalar a última versão do SemanticMediaWiki. Quando eu executo composer update , ele retorna o seguinte:

> ComposerHookHandler::onPreUpdate
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
    - mediawiki/semantic-media-wiki 2.4.x-dev requires onoi/callback-container ~1.0 -> satisfiable by onoi/callback-container[1.0.0, 1.1.0] but these conflict with your requirements or minimum-stability.
    - mediawiki/semantic-media-wiki 2.4.6 requires onoi/callback-container ~1.0 -> satisfiable by onoi/callback-container[1.0.0, 1.1.0] but these conflict with your requirements or minimum-stability.
    - mediawiki/semantic-media-wiki 2.4.5 requires onoi/callback-container ~1.0 -> satisfiable by onoi/callback-container[1.0.0, 1.1.0] but these conflict with your requirements or minimum-stability.
    - mediawiki/semantic-media-wiki 2.4.4 requires onoi/callback-container ~1.0 -> satisfiable by onoi/callback-container[1.0.0, 1.1.0] but these conflict with your requirements or minimum-stability.
    - mediawiki/semantic-media-wiki 2.4.3 requires onoi/callback-container ~1.0 -> satisfiable by onoi/callback-container[1.0.0, 1.1.0] but these conflict with your requirements or minimum-stability.
    - mediawiki/semantic-media-wiki 2.4.2 requires onoi/callback-container ~1.0 -> satisfiable by onoi/callback-container[1.0.0, 1.1.0] but these conflict with your requirements or minimum-stability.
    - mediawiki/semantic-media-wiki 2.4.1 requires onoi/callback-container ~1.0 -> satisfiable by onoi/callback-container[1.0.0, 1.1.0] but these conflict with your requirements or minimum-stability.
    - Installation request for mediawiki/semantic-media-wiki ~2.4.1 -> satisfiable by mediawiki/semantic-media-wiki[2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.4.5, 2.4.6, 2.4.x-dev].

Eu até defini minimum-stability para dev e até prefer-stable para false . Nada resolve.

Não é o primeiro problema com o Composer. Ele retornou um erro devido a nenhum conjunto version no pacote mediawiki/core , que era necessário ainda por este SMW. Mas não neste momento, surpresa.

E o Composer não vê o pacote em composer show onoi/callback-container . Existe uma versão estável 2.0.

    
por Сергей Румянцев 05.05.2017 / 17:57

1 resposta

0

Verifique novamente o composer.json e como você está exigindo a versão. Esse arquivo funcionou para mim:

{
  "require-dev": {
    "mediawiki/semantic-media-wiki": "~2.4.1"
  }
}

que é equivalente ao comando composer require mediawiki/semantic-media-wiki:~2.4.1 .

Se composer show não visualizar o pacote correto, tente os seguintes comandos:

  • composer clean para limpar os caches.
  • composer diagnose para verificar erros comuns.
por 04.12.2017 / 18:32