1. 程式人生 > 實用技巧 >yii composer require dmstr/yii2-adminlte-asset 出現的報錯

yii composer require dmstr/yii2-adminlte-asset 出現的報錯

這是第一篇關於yii部落格,今天安裝了yii-advanced-app-2.0.36 並且用了

composer require dmstr/yii2-adminlte-asset

安裝了模版,總報錯

Could not find a version of package dmstr/yii2-adminlte-asset matching your minimum-stability (stable). Require it
with an explicit version constraint allowing its desired stability.

網上查了一下原來是composer 映象問題

"packagist": {
"type": "composer",
"url": "https://packagist.phpcomposer.com"
}

改成

"packagist": {
"type": "composer",
"url": "https://packagist.org"
}

安裝成功

這個安裝成了但是一直有一個問題不知道為什麼 ,希望請大佬解答

問題:每次執行composer都出一個警告The "fxp/composer-asset-plugin" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option. 這個怎麼才能去掉,百度了也沒有查到