欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

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

程序员文章站 2022-04-18 20:01:15
...
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"
这一行命令后又可以了,这条命令是作了更新操作吗??

题主你可以试试这个:

composer global require "fxp/composer-asset-plugin:1.0.3"

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

刚刚好出了个系列教程:

http://segmentfault.com/blog/jellybool

具体安装可以看这个:

http://segmentfault.com/a/1190000003047525

相关标签: yii2 php