yiisoft / yii2

Yii 2: The Fast, Secure and Professional PHP Framework
http://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
14.24k stars 6.91k forks source link

requires bower-asset/jquery #20103

Closed philiprbrenan closed 10 months ago

philiprbrenan commented 10 months ago

Running the following per the installation instructions:

composer require yiisoft/yii2

produces:

Using version 2.0.49.3 for yiisoft/yii2
./composer.json has been created
Running composer update yiisoft/yii2
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires yiisoft/yii2 2.0.49.3 -> satisfiable by yiisoft/yii2[2.0.49.3].
    - yiisoft/yii2 2.0.49.3 requires bower-asset/jquery 3.7.*@stable | 3.6.*@stable | 3.5.*@stable | 3.4.*@stable | 3.3.*@stable | 3.2.*@stable | 3.1.*@stable | 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> could not be found in any version, but the following packages provide it:
      - craftcms/cms Craft CMS
      - yidas/yii2-bower-asset Bower Assets for Yii 2 app provided via Composer repository
      - yidas/yii2-composer-bower-skip A Composer package that allows you to install or update Yii2 without Bower-Asset
      - demokn/yii2-composer-asset
      - jamband/yii2-schemadump Generate the schema from an existing database
      - craftcms/yii2-dynamodb Yii2 implementation of a cache, session, and queue driver for DynamoDB
      - kriss/yii2-calendar-schedule Yii2 Calendar Schedule
....
      Consider requiring one of these to satisfy the bower-asset/jquery requirement.

Which package should I select? Might it be helpful to add this choice to the installation instructions?

bizley commented 10 months ago

https://www.yiiframework.com/doc/guide/2.0/en/start-installation#installing-assets