Error installing Laravel: Package not available in stable version [closed]

2

I am strictly following the indicated in the Laravel documentation to install it:

composer global require "laravel/installer=~1.1"

However, after a long delay comes the following return:

Changed current directory to (...)/AppData/Roaming/Composer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package lavarel/installer 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.

Installation failed, reverting ./composer.json to its original content.

What can I do wrong?

    
asked by anonymous 31.03.2015 / 19:03

2 answers

0

Take a look at your config.json (usually at ~ / .composer / config.json) and make sure you do not have (or have been - for more than a month) a parameter excluding the packagist from the list of repositories. p>

"repositories": [
    {
        "packagist": false
    }
]

Placing this parameter in mine, I was able to reproduce its error. Removing it installed normally.

    
07.05.2015 / 14:56
0

I could not reproduce your problem here. The command worked perfectly. Try the following steps:

Update your composer

composer self-update

Re-install the package, but with a more relaxed version rule

composer global require 'laravel/installer=1.*'
    
09.06.2015 / 13:04