Yii 2安装错误

时间:2016-03-25 11:09:03

标签: yii2 yii2-basic-app

我正在安装新的yii2项目。我已经安装了控制器。但是当我在终端中运行以下命令时

php composer.phar create-project --stability=dev yiisoft/yii2-app-basic my_yii2_trial

php composer.phar create-project yiisoft/yii2-app-basic basic

对于这个命令它显示错误,

[InvalidArgumentException]                                            
  Could not find package yiisoft/yii2-app-basic with stability stable. 

请帮忙。

1 个答案:

答案 0 :(得分:3)

为什么不遵循官方文档?

http://www.yiiframework.com/doc-2.0/guide-start-installation.html

composer global require "fxp/composer-asset-plugin:~1.1.1"
composer create-project --prefer-dist yiisoft/yii2-app-basic basic