php yii2安装遇到的报错记录
运行:
composer create-project --prefer-dist yiisoft/yii2-app-basic basic
遇到错误如下:
[InvalidArgumentException]
Could not find package yiisoft/yii2-app-basic with stability stable.
最后得知是镜像的问题,
无法找到框架包
换镜像
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
后成功安装~