lichunqiang / yii2-swagger

yii2 with swagger-php
https://packagist.org/packages/light/yii2-swagger
MIT License
151 stars 47 forks source link

composer 安装报错 #9

Closed Aibric closed 7 years ago

Aibric commented 7 years ago

1、composer require --prefer-dist light/yii2-swagger "~1.0.4" --dev

error Your requirements could not be resolved to an installable set of packages.

Problem 1

Potential causes:

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

2、composer require --prefer-dist light/yii2-swagger "~1.0.5" --dev

Your requirements could not be resolved to an installable set of packages.

Problem 1

Potential causes:

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

Installation failed, reverting ./composer.json to its original content.

lichunqiang commented 7 years ago

fxp-asset 的版本是多少

Aibric commented 7 years ago

windows composer version 1.4.1,我没有安装过。fxp/composer-asset-plugin插件。。。

lichunqiang commented 7 years ago

用yii不装这个插件,你是怎么做到的额。。

Aibric commented 7 years ago

我是在官方网站直接下载的源码啊。。。

https://github.com/yiisoft/yii2/releases/download/2.0.11/yii-advanced-app-2.0.11.tgz

lichunqiang commented 7 years ago

这个,你如果用composer安装的话,得按照yii文档来,先全局装上那个插件才行。。

Aibric commented 7 years ago

好的,那我在安装一下fxp/composer-asset-plugin 插件吧。

Aibric commented 7 years ago

@lichunqiang 谢谢,安装 完 fxp/composer-asset-plugin OK了。