yii2-usuario
yii2-usuario copied to clipboard
i cant install bootstrap error
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?
Try installing dev-master, 1.0 is ages old
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.`
Possibly you have some conflicting stuff already included in your project?
can you check what $ composer show *bootstrap* returns?
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
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
Technically not a "bug" of usuario, but generally a problem again referring to the need of decoupling the mandatory views from the core.