Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yii2 installation using composer giving error

Tags:

php

yii

yii2

I am trying to install Yii2 alpha. When I run the following command after downloading composer and adding

"minimum-stability": "dev"

to composer.json.

$ php composer.phar require yiisoft/yii2-framework "*"

I get the following error.

Problem 1 - The requested package minimum-stability could not be found in any version, there may be a typo in the package name.

Problem 2 - The requested package yiisoft/yii2-composer could not be found in any version, there may be a typo in the package name.

Problem 3 - The requested package yiisoft/yii2-framework could not be found in any version, there may be a typo in the package name.

Potential causes: - A typo in the package name - The package is not available in a stable-enough version according to your minimum-stability setting see https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion for more details.

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

Please help me.

like image 515
user3509359 Avatar asked Apr 08 '14 04:04

user3509359


1 Answers

start with

php composer.phar init 

and set Minimum Stability[] to dev

then

php composer.phar require yiisoft/yii2 "*"
like image 113
user1852788 Avatar answered Nov 02 '22 14:11

user1852788