yiisoft / yii-bootstrap5

Yii Framework Bootstrap 5 support
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
60 stars 20 forks source link

Installation Problem #119

Closed kratkar closed 11 months ago

kratkar commented 11 months ago

Hi!

What steps will reproduce the problem?

Installation. Checked for a new project.

php composer.phar create-project yiisoft/app --prefer-dist --stability=dev app-test

Install bootstrap 5

php composer.phar require --prefer-dist yiisoft/yii-bootstrap5

What do you get instead?

Problem 1
    - yiisoft/yii-bootstrap5[dev-dependabot/composer/rector/rector-tw-0.17.6, dev-dependabot/composer/rector/rector-tw-0.17.7, dev-dependabot/composer/vimeo/psalm-tw-5.13, dev-dependabot/composer/phpunit/phpunit-tw-10.2, dev-master, 3.0.x-dev] require npm-asset/bootstrap ^5.0.0 -> could not be found in any version, but the following packages provide it:
      - demokn/yii2-composer-asset
      - kriss/yii2-advanced Yii2 advanced project template, Frontend for API and Backend with AdminLTE
      - yzchan/yii2-asset-provider
      Consider requiring one of these to satisfy the npm-asset/bootstrap requirement.
    - yiisoft/yii-bootstrap5 3.0.x-dev is an alias of yiisoft/yii-bootstrap5 dev-master and thus requires it to be installed too.
    - Root composer.json requires yiisoft/yii-bootstrap5 * -> satisfiable by yiisoft/yii-bootstrap5[dev-dependabot/composer/rector/rector-tw-0.17.6, dev-dependabot/composer/rector/rector-tw-0.17.7, dev-dependabot/composer/vimeo/psalm-tw-5.13, dev-dependabot/composer/phpunit/phpunit-tw-10.2, dev-master, 3.0.x-dev (alias of dev-master)].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

Additional info

Q A
Version 3
PHP version 8.2.8
Operating system 22.04.1-Ubuntu
vjik commented 11 months ago

Try add this lines to composer.json:

"repositories": [
    {
        "type": "composer",
        "url": "https://asset-packagist.org"
    }
]
terabytesoftw commented 11 months ago

use https://github.com/yiisoft/yii2-bootstrap5

kratkar commented 11 months ago

Try add this lines to composer.json:

"repositories": [
    {
        "type": "composer",
        "url": "https://asset-packagist.org"
    }
]

Yes. It`s worked. Thanks

terabytesoftw commented 11 months ago

You have packages from Yii2 with Yii3, this is incompatible.

vjik commented 11 months ago

You have packages from Yii2 with Yii3, this is incompatible.

This is Yii3 App template and Yii3 package "yiisoft/yii-bootstrap5".

kratkar commented 11 months ago

You have packages from Yii2 with Yii3, this is incompatible.

No. I created a new yii3 project.

vjik commented 11 months ago

Closed favor in #120

vjik commented 11 months ago

@kratkar Thanks for issue!