Composer returns the following error
Problem 1
- Conclusion: don't install drupal/svg_image 1.12.0
- Conclusion: don't install drupal/svg_image 1.x-dev|remove enshrined/svg-sanitize 0.12.0
- Conclusion: don't install drupal/svg_image 1.x-dev|don't install enshrined/svg-sanitize 0.12.0
- Installation request for drupal/svg_image ^1.12 -> satisfiable by drupal/svg_image[1.x-dev, 1.12.0].
- drupal/svg_image 1.x-dev requires enshrined/svg-sanitize ~0.13 -> satisfiable by enshrined/svg-sanitize[0.13.0, 0.13.1, 0.13.2, 0.13.3].
- Can only install one of: enshrined/svg-sanitize[0.13.0, 0.12.0].
- Can only install one of: enshrined/svg-sanitize[0.13.1, 0.12.0].
- Can only install one of: enshrined/svg-sanitize[0.13.2, 0.12.0].
- Can only install one of: enshrined/svg-sanitize[0.13.3, 0.12.0].
- Installation request for enshrined/svg-sanitize (locked at 0.12.0) -> satisfiable by enshrined/svg-sanitize[0.12.0].

maybe you should use

"require": {
"enshrined/svg-sanitize": "^0.12.0"
},

instead of

"require": {
"enshrined/svg-sanitize": "~0.12.0"
},

All the best
Francisco

Comments

fmmribeiro created an issue. See original summary.

imyaro’s picture

Hello,
Does somebody else require enshrined/svg-sanitize? I didn't met any issues during tests.

If you not sure - could you please run composer why enshrined/svg-sanitize and paste output here.

dgwebcreative’s picture

I ran into this on a dev site and ran composer why enshrined/svg-sanitize
This was the result:
drupal/menu_svg_icons 1.0.0 requires enshrined/svg-sanitize (^0.9.0)

  • zvse committed 73af40e on 8.x-1.x
    Issue #3122807: Cannot install - composer dependency problem
    

  • zvse committed 51ba3b1 on 8.x-1.x
    Issue #3122807: Cannot install - composer dependency problem
    

  • zvse committed 3fc0438 on 8.x-1.x
    Issue #3122807: Cannot install - composer dependency problem
    
imyaro’s picture

Hello,
I've changed version of the package to the one, which will match compatibility for the svg_menu_icons module. Also please check the issue #3123053: Sanitizer version dependency.

Please download latest release 8.x-1.13

imyaro’s picture

imyaro’s picture

Status: Active » Fixed

Related issue fixed.
Mark it as fixed too.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.