Composer and fxp/composer-asset-plugin

Hello.

I’ve cloned Yii2 project and tried to install vendor dependencies with composer command


composer install

but got next error message


$ composer install

...

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


  Problem 1

    - Installation request for yiisoft/yii2 2.0.7 -> satisfiable by yiisoft/yii2[2.0.7].

    - yiisoft/yii2 2.0.7 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable -> no matching package found.

  Problem 2

    - Installation request for uran1980/yii2-scroll-to-top dev-master -> satisfiable by uran1980/yii2-scroll-to-top[dev-master].

    - uran1980/yii2-scroll-to-top dev-master requires bower-asset/scroll-to-top * -> no matching package found.

  Problem 3

    - yiisoft/yii2 2.0.x-dev requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable -> no matching package found.

    - yiisoft/yii2 dev-master requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable -> no matching package found.

    - yiisoft/yii2 2.0.7 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable -> no matching package found.

    - nsept/yii2-birthday-picker dev-master requires yiisoft/yii2 * -> satisfiable by yiisoft/yii2[2.0.7, dev-master, 2.0.x-dev].

    - Installation request for nsept/yii2-birthday-picker * -> satisfiable by nsept/yii2-birthday-picker[dev-master].

...



OS: Windows 7.

Composer version


$ composer --version

Composer version 1.1.3 2016-06-26 15:42:08

Globaly installed plugins


$ composer global show -i

fxp/composer-asset-plugin v1.1.4 NPM/Bower Dependency Manager for Composer

composer.json


{

...

    "minimum-stability": "dev",

    "require": {

        "php": ">=5.4.0",

        "yiisoft/yii2": "2.0.7",

        "swiftmailer/swiftmailer": "dev-fixStreamBufferTransport",

        "yiisoft/yii2-bootstrap": ">=2.0.3",

        "yiisoft/yii2-swiftmailer": "*",

        "yiisoft/yii2-authclient": "^2.0@dev",

        "2amigos/yii2-date-picker-widget": "~1.0",

        "kartik-v/yii2-widget-timepicker": "*",

        "kartik-v/yii2-widget-rating": "*",

        "2amigos/yii2-gallery-widget": "~1.0",

        "2amigos/yii2-ckeditor-widget": "~1.0",

        "uran1980/yii2-scroll-to-top": "dev-master",

        "yii-cms/yii2-robokassa": "^1.1",

        "onokumus/metismenu": "v2.4.2",

        "rmrevin/yii2-fontawesome": "*",

        "dektrium/yii2-user": "*",

        "p2made/yii2-sb-admin-theme": "1.1.2",

        "p2made/yii2-p2y2-things": "*",

        "p2made/yii2-asset-collection": "*",

        "demi/image": "~1.0",

        "demi/cropper": "~1.0",

        "cyneek/yii2-widget-upload-crop": "dev-master",

        "Nemmo/yii2-attachments": "*",

        "2amigos/yii2-file-input-widget": "*",

        "rkit/yii2-ajaxform-plugin": "^0.0.4",

        "nsept/yii2-birthday-picker": "*"

    },

    "require-dev": {

        "yiisoft/yii2-codeception": "*",

        "yiisoft/yii2-debug": "*",

        "yiisoft/yii2-gii": "*",

        "yiisoft/yii2-faker": "*"

    },

    "config": {

        "process-timeout": 1800

    },

    "scripts": {

        "post-create-project-cmd": [

            "yii\\composer\\Installer::postCreateProject"

        ]

    },

    "extra": {

        "yii\\composer\\Installer::postCreateProject": {

            "setPermission": [

                {

                    "runtime": "0777",

                    "web/assets": "0777",

                    "yii": "0755"

                }

            ],

            "generateCookieValidationKey": [

                "config/web.php"

            ]

        },

        "asset-installer-paths": {

            "npm-asset-library": "vendor/npm",

            "bower-asset-library": "vendor/bower"

        }

    }

}

I tried to delete composer.json file and install bower-asset/jquery with command


composer require bower-asset/jquery:2.2.2

It has been installed successfully. Then I restore my old composer.json file and added


"bower-asset/jquery": "2.2.2",

to the require section and run composer install. After very long waiting a got next error


$ composer install

...

  Problem 1

    - The requested package bower-asset/jquery 2.2.2 exists as bower-asset/jquery[dev-master] but these are rejected by your constraint.

  Problem 2

    - Installation request for yiisoft/yii2 2.0.7 -> satisfiable by yiisoft/yii2[2.0.7].

    - yiisoft/yii2 2.0.7 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable -> no matching package found.

  Problem 3

    - yiisoft/yii2 2.0.x-dev requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable -> no matching package found.

    - yiisoft/yii2 dev-master requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable -> no matching package found.

    - yiisoft/yii2 2.0.7 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable -> no matching package found.

    - nsept/yii2-birthday-picker dev-master requires yiisoft/yii2 * -> satisfiable by yiisoft/yii2[2.0.7, dev-master, 2.0.x-dev].

    - Installation request for nsept/yii2-birthday-picker * -> satisfiable by nsept/yii2-birthday-picker[dev-master].

...



How can I install dependencies via composer? Thanks.

Update fxp/composer-asset-plugin to 1.2 and then update composer also to 1.2, run composer clearcache and try again.

Composer drives me crazy.


└▶ composer --version

Composer version 1.1.1 2016-05-17 12:25:44

└▶ composer global show

fxp/composer-asset-plugin v1.1.4 NPM/Bower Dependency Manager for Composer



On my Linux machine composer installed same packages without errors.