使用composer
安装yii2-apidoc
包时曝出Your requirements could not be resolved to an installable set of packages.
的错误。因为使用的是composer
的中国镜像,取消镜像,使用VPN,依然是有这个错误。后来换了种安装方式,解决问题。之前安装使用的是composer require --prefer-dist yiisoft/yii2-apidoc
这个指令,现在不使用这个指令。直接在项目composer.json
文件中require
增加"yiisoft/yii2-apidoc": "~2.0.0"
,然后执行composer update
,恢复使用中国镜像,安装很快完成。
Yii2之yii2-apidoc安装爆Your requirements could not be resolved to an installable set of packages.的解决方案
最新推荐文章于 2020-12-23 15:47:22 发布