yii2mod / yii2-rbac

RBAC Manager for Yii 2
MIT License
145 stars 58 forks source link

Can't install Yii2 RBAC Extension #34

Open aksthelion opened 5 years ago

aksthelion commented 5 years ago

I'm trying to install RBAC Extension on yii2 advanced template but it throws error. How to I install RBAC?

$ ls composer.phar yii

$ which composer /usr/local/bin/composer

$ composer global require --prefer-dist yii2mod/yii2-rbac "*"

Changed current directory to /Users/imac/.composer ./composer.json has been created Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

Problem 1 - yii2mod/yii2-rbac 1.0 requires yiisoft/yii2-jui * -> satisfiable by yiisoft/yii2-jui[2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7].

....

Installation request for yii2mod/yii2-rbac * -> satisfiable by yii2mod/yii2-rbac[1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 1.9.1, 1.9.2, 1.9.3, 2.0, 2.1, 2.2, 2.2.1, 2.3]. 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

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

Installation failed, deleting ./composer.json.

gredek commented 5 years ago

I'm trying to install RBAC Extension on yii2 advanced template but it throws error. How to I install RBAC?

$ ls composer.phar yii

$ which composer /usr/local/bin/composer

$ composer global require --prefer-dist yii2mod/yii2-rbac "*"

Changed current directory to /Users/imac/.composer ./composer.json has been created Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

Problem 1 - yii2mod/yii2-rbac 1.0 requires yiisoft/yii2-jui * -> satisfiable by yiisoft/yii2-jui[2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7].

....

Installation request for yii2mod/yii2-rbac * -> satisfiable by yii2mod/yii2-rbac[1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 1.9.1, 1.9.2, 1.9.3, 2.0, 2.1, 2.2, 2.2.1, 2.3]. 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

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

Installation failed, deleting ./composer.json.

try to updated fxp/composer-asset-plugin to latest version and try again.