2amigos / yii2-usuario

Highly customizable and extensible user management, authentication, and authorization Yii2 extension
https://github.com/2amigos/yii2-usuario
Other
296 stars 142 forks source link

i cant install bootstrap error #485

Open DikkiX opened 1 year ago

DikkiX commented 1 year ago

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 commented 1 year ago

Try installing dev-master, 1.0 is ages old

DikkiX commented 1 year ago

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

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

TonisOrmisson commented 1 year ago

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

DikkiX commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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