yii2: Update to 2.0.10 fails with "don't install bower-asset/jquery.inputmask 3.1.63"

What steps will reproduce the problem?

run composer require "yiisoft/yii2:~2.0.10" in terminal

What is the expected result?

yii2 to update

What do you get instead?

yii2 doesn’t update

Additional info

Q A
Yii version 2.0.5
PHP version 5.5.35
Operating system OSX 10.12.2

Error

Problem 1
    - Installation request for yiisoft/yii2 ~2.0.10 -> satisfiable by yiisoft/yii2[2.0.10].
    - Conclusion: don't install bower-asset/jquery.inputmask 3.1.63
    - yiisoft/yii2 2.0.10 requires bower-asset/jquery.inputmask ~3.2.2 -> satisfiable by bower-asset/jquery.inputmask[3.2.7, 3.2.6, 3.2.5, 3.2.4, 3.2.3, 3.2.2].
    - Can only install one of: bower-asset/jquery.inputmask[3.1.63, 3.2.7].
    - Can only install one of: bower-asset/jquery.inputmask[3.1.63, 3.2.6].
    - Can only install one of: bower-asset/jquery.inputmask[3.1.63, 3.2.5].
    - Can only install one of: bower-asset/jquery.inputmask[3.1.63, 3.2.4].
    - Can only install one of: bower-asset/jquery.inputmask[3.1.63, 3.2.3].
    - Can only install one of: bower-asset/jquery.inputmask[3.1.63, 3.2.2].
    - Installation request for bower-asset/jquery.inputmask (locked at 3.1.63) -> satisfiable by bower-asset/jquery.inputmask[3.1.63].

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 21 (10 by maintainers)

Most upvoted comments

Have you tried to remove vendor directory and then call composer install?

When updating an existing installation, you should add the --update-with-dependencies parameter, e.g.:

composer require "yiisoft/yii2:~2.0.10" --update-with-dependencies

Composer will not touch any other packages than the one you specified and might fail if yii’s dependencies have changed a bit.

See also https://github.com/yiisoft/yii2/blob/master/framework/UPGRADE.md#upgrading-instructions-for-yii-framework-20

ok, I deleted the vendor folder, then ran composer install (which changed nothing), however this time running composer require "yiisoft/yii2:~2.0.10" --update-with-dependencies did the trick; I’m actully on 2.0.11.2 now. Thank you guys.

I ran into same problem when ich was downgrading from dev-master to 2.0.10 and --update-with-dependencies did solve it