hiqdev / asset-packagist

Asset Packagist
https://asset-packagist.org
BSD 3-Clause "New" or "Revised" License
247 stars 24 forks source link

Can not install npm-asset/mermaid:7.0.5 #69

Closed schmunk42 closed 6 years ago

schmunk42 commented 6 years ago

Running the command

composer require -vvv --no-plugins npm-asset/mermaid:7.0.5

Leads to

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

  Problem 1
    - Can only install one of: npm-asset/minimist[0.0.8, 1.2.0].
    - npm-asset/mkdirp 0.5.1 requires npm-asset/minimist 0.0.8 -> satisfiable by npm-asset/minimist[0.0.8].
    - npm-asset/mermaid 7.0.5 requires npm-asset/minimist >=1.2.0,<2.0.0 -> satisfiable by npm-asset/minimist[1.2.0].
    - npm-asset/mermaid 7.0.5 requires npm-asset/mkdirp >=0.5.1,<0.6.0 -> satisfiable by npm-asset/mkdirp[0.5.1].
    - Installation request for npm-asset/mermaid 7.0.5 -> satisfiable by npm-asset/mermaid[7.0.5].

Within the dependencies of mermaid there are (in a composer sense) incompatible constraints to minimist. npm can "solve" this, by installing multiple versions of a dependency (as a sub-dependency).

Interestingly, you can download a 7.0.5 zip package from here: https://asset-packagist.org/package/npm-asset/mermaid


This is more a informational issue for you as maintainers of asset-packagist, since it's an issue in the way how composer vs. npm works. I fear you (or fxpio/cap) might not be able to do anything about these cases, but they might be noted in the docs.

Feel free to reopen this issue.