PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, January 30, 2022

[FIXED] Yii2 installation using composer giving error

 January 30, 2022     php, yii, yii2     No comments   

Issue

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.


Solution

start with

php composer.phar init 

and set Minimum Stability[] to dev

then

php composer.phar require yiisoft/yii2 "*"


Answered By - user1852788
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing