首頁 >後端開發 >php教程 >windows安装yii2框架老是出现下面问题

windows安装yii2框架老是出现下面问题

WBOY
WBOY原創
2016-06-06 20:30:051103瀏覽

Problem 1
- yiisoft/yii2 2.0.3 requires bower-asset/jquery 2.1.@stable | 1.11.@stabl
e -> no matching package found.
- yiisoft/yii2 2.0.2 requires bower-asset/jquery 2.1.@stable | 1.11.@stabl
e -> no matching package found.
- yiisoft/yii2 2.0.1 requires bower-asset/jquery 2.1.@stable | 1.11.@stabl
e -> no matching package found.
- yiisoft/yii2 2.0.0 requires bower-asset/jquery 2.1.@stable | 1.11.@stabl
e -> no matching package found.
- Installation request for yiisoft/yii2 * -> satisfiable by yiisoft/yii2[2.0
.0, 2.0.1, 2.0.2, 2.0.3].

但是执行了:
composer global require "fxp/composer-asset-plugin:1.0.0-beta4"
这一行命令后又可以了,这条命令是作了更新操作吗??

回复内容:

Problem 1
- yiisoft/yii2 2.0.3 requires bower-asset/jquery 2.1.@stable | 1.11.@stabl
e -> no matching package found.
- yiisoft/yii2 2.0.2 requires bower-asset/jquery 2.1.@stable | 1.11.@stabl
e -> no matching package found.
- yiisoft/yii2 2.0.1 requires bower-asset/jquery 2.1.@stable | 1.11.@stabl
e -> no matching package found.
- yiisoft/yii2 2.0.0 requires bower-asset/jquery 2.1.@stable | 1.11.@stabl
e -> no matching package found.
- Installation request for yiisoft/yii2 * -> satisfiable by yiisoft/yii2[2.0
.0, 2.0.1, 2.0.2, 2.0.3].

但是执行了:
composer global require "fxp/composer-asset-plugin:1.0.0-beta4"
这一行命令后又可以了,这条命令是作了更新操作吗??

题主你可以试试这个:

<code>composer global require "fxp/composer-asset-plugin:1.0.3"

</code>

这个composer-asset-plugin是用composer来管理bower packages 和 npm packages的

刚刚好出了个系列教程:

http://segmentfault.com/blog/jellybool

具体安装可以看这个:

http://segmentfault.com/a/1190000003047525

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn