yiisoft / yii2-apidoc

Yii 2 apidoc extension.
https://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
258 stars 121 forks source link

Cant not install #183

Closed ezsky closed 4 years ago

ezsky commented 4 years ago

Problem 1

samdark commented 4 years ago

How do you install it exactly?

ezsky commented 4 years ago

How do you install it exactly?

no, I had create new basic template and use default composer install command. but, yii2-doc 2.1.2 can not install

hi-rad commented 4 years ago

I have got the same problem

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: don't install yiisoft/yii2-apidoc 2.1.2
    - Conclusion: don't install yiisoft/yii2-apidoc 2.1.1
    - Conclusion: remove cebe/markdown 1.2.1
    - Installation request for yiisoft/yii2-apidoc ^2.1 -> satisfiable by yiisoft/yii2-apidoc[2.1.0, 2.1.1, 2.1.2].
    - Conclusion: don't install cebe/markdown 1.2.1
    - yiisoft/yii2-apidoc 2.1.0 requires cebe/markdown ~1.0.0 | ~1.1.0 -> satisfiable by cebe/markdown[1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.1.0, 1.1.1, 1.1.2].
    - Can only install one of: cebe/markdown[1.0.0, 1.2.1].
    - Can only install one of: cebe/markdown[1.0.1, 1.2.1].
    - Can only install one of: cebe/markdown[1.0.2, 1.2.1].
    - Can only install one of: cebe/markdown[1.0.3, 1.2.1].
    - Can only install one of: cebe/markdown[1.1.0, 1.2.1].
    - Can only install one of: cebe/markdown[1.1.1, 1.2.1].
    - Can only install one of: cebe/markdown[1.1.2, 1.2.1].
    - Installation request for cebe/markdown (locked at 1.2.1) -> satisfiable by cebe/markdown[1.2.1].

Installation failed, reverting ./composer.json to its original content.
shouhuori commented 4 years ago

add

"yiisoft/yii2-apidoc": "~2.1.0"

to composer.json,then composer update -vvv,will automatic downgrade the 'cebe/markdown' version.

samdark commented 4 years ago

Yes, that's because https://github.com/cebe/markdown-latex/issues/14:

$ composer why-not cebe/markdown
cebe/markdown-latex  1.1.5   requires  cebe/markdown (~1.0.0)
yiisoft/yii2         2.0.32  requires  cebe/markdown (~1.0.0 | ~1.1.0 | ~1.2.0)
yiisoft/yii2-apidoc  2.1.2   requires  cebe/markdown (~1.0.0 | ~1.1.0 | ~1.2.0)
$ composer why cebe/markdown-latex
yiisoft/yii2-apidoc  2.1.2  requires  cebe/markdown-latex (~1.0)
bizley commented 4 years ago

Duplicates #123