Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i cant install bootstrap error #485

Open
DikkiX opened this issue Dec 20, 2022 · 6 comments
Open

i cant install bootstrap error #485

DikkiX opened this issue Dec 20, 2022 · 6 comments

Comments

@DikkiX
Copy link

DikkiX commented Dec 20, 2022

When trying to install thru composer i keep getting this error

PS C:\xampp\htdocs\Schoolproject> composer -W require 2amigos/yii2-usuario:~1.0
Info from https://repo.packagist.org: #StandWithUkraine
./composer.json has been updated
Running composer update 2amigos/yii2-usuario --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - 2amigos/yii2-usuario[1.1.0, ..., 1.5.1] require yiisoft/yii2-bootstrap ^2.0 -> satisfiable by yiisoft/yii2-bootstrap[2.0.0, ..., 2.0.11].
    - 2amigos/yii2-usuario[1.0.0, ..., 1.0.13] require yiisoft/yii2-bootstrap ^2.0.0 -> satisfiable by yiisoft/yii2-bootstrap[2.0.0, ..., 2.0.11].
    - yiisoft/yii2-bootstrap 2.0.0 requires bower-asset/bootstrap 3.2.* | 3.1.* -> found bower-asset/bootstrap[v3.1.0, v3.1.1, v3.2.0] but these were not loaded, likely because it conflicts with another require.
    - yiisoft/yii2-bootstrap[2.0.1, ..., 2.0.8] require bower-asset/bootstrap 3.3.* | 3.2.* | 3.1.* -> found bower-asset/bootstrap[v3.1.0, ..., v3.3.7] but these were not loaded, likely because it conflicts with another require.
    - yiisoft/yii2-bootstrap[2.0.9, ..., 2.0.11] require bower-asset/bootstrap 3.4.* | 3.3.* | 3.2.* | 3.1.* -> found bower-asset/bootstrap[v3.1.0, ..., v3.4.1] but these were not loaded, likely because it conflicts with another require.
    - Root composer.json requires 2amigos/yii2-usuario ~1.0 -> satisfiable by 2amigos/yii2-usuario[1.0.0, ..., 1.5.1].


Installation failed, reverting ./composer.json and ./composer.lock to their original content.

there a way fixing this?

@maxxer
Copy link
Collaborator

maxxer commented Dec 20, 2022

Try installing dev-master, 1.0 is ages old

@DikkiX
Copy link
Author

DikkiX commented Dec 20, 2022

i get this error after that.

`PS C:\xampp\htdocs\Schoolproject> composer -W require 2amigos/yii2-usuario:"dev-master"
./composer.json has been updated
Running composer update 2amigos/yii2-usuario --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- yiisoft/yii2-bootstrap 2.0.0 requires bower-asset/bootstrap 3.2.* | 3.1.* -> found bower-asset/bootstrap[v3.1.0, v3.1.1, v3.2.0] but these were not loaded, likely because it conflicts with another require.
- yiisoft/yii2-bootstrap[2.0.1, ..., 2.0.8] require bower-asset/bootstrap 3.3.* | 3.2.* | 3.1.* -> found bower-asset/bootstrap[v3.1.0, ..., v3.3.7] but these were not loaded, likely because it conflicts with another require.
- yiisoft/yii2-bootstrap[2.0.9, ..., 2.0.11] require bower-asset/bootstrap 3.4.* | 3.3.* | 3.2.* | 3.1.* -> found bower-asset/bootstrap[v3.1.0, ..., v3.4.1] but these were not loaded, likely because it conflicts with another require.
- 2amigos/yii2-usuario dev-master requires yiisoft/yii2-bootstrap ^2.0 -> satisfiable by yiisoft/yii2-bootstrap[2.0.0, ..., 2.0.11].
- Root composer.json requires 2amigos/yii2-usuario dev-master -> satisfiable by 2amigos/yii2-usuario[dev-master].

Installation failed, reverting ./composer.json and ./composer.lock to their original content.`

@TonisOrmisson
Copy link
Contributor

Possibly you have some conflicting stuff already included in your project?
can you check what $ composer show *bootstrap* returns?

@DikkiX
Copy link
Author

DikkiX commented Dec 20, 2022

it shows me

PS C:\xampp\htdocs\Schoolproject> composer show *bootstrap* bower-asset/bootstrap v5.2.3 yiisoft/yii2-bootstrap5 2.0.4 The Twitter Bootstrap v5 extension for the Yii framework

@TonisOrmisson
Copy link
Contributor

There you have it. Your project uses bootstrap5. This module uses bootstrap3. It's a conflict.
There is an open discussion regarding the bs here #437

@TonisOrmisson
Copy link
Contributor

Technically not a "bug" of usuario, but generally a problem again referring to the need of decoupling the mandatory views from the core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants