Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not find package laravel-laravel with stability stable

When trying to create a project on Ubuntu 16.04 with PHP 7, I am getting the following error:

Could not find package laravel-laravel with stability stable

Whats the solution for that?

like image 238
Beauty akter Avatar asked Jun 17 '16 05:06

Beauty akter


4 Answers

you have a typo , use this

  composer create-project --prefer-dist laravel/laravel test
like image 99
Achraf Khouadja Avatar answered Oct 13 '22 16:10

Achraf Khouadja


It's not laravel-laravel, it's laravel/laravel.

You use vendor/package-name with composer.

# composer info -a laravel/laravel
name     : laravel/laravel
descrip. : The Laravel Framework.
keywords : framework, laravel
versions : dev-master, v5.2.31, v5.2.29, v5.2.27, v5.2.24, v5.2.23, v5.2.15, v5.2.0, 5.1.x-dev, v5.1.33, v5.1.11, v5.1.4, v5.1.3, v5.1.1, v5.1.0, 5.0.x-dev, v5.0.22, v5.0.16, v5.0.1, v5.0.0, v4.2.11, v4.2.0, v4.1.27, v4.1.18, v4.1.0, v4.0.9, v4.0.8, v4.0.7, v4.0.6, v4.0.5, v4.0.4, v4.0.0, v4.0.0-BETA4, v4.0.0-BETA3, dev-develop
type     : project
license  : MIT License (MIT) (OSI approved) https://spdx.org/licenses/MIT.html#licenseText
source   : [git] https://github.com/laravel/laravel.git 47d7e2d490c969a91d8aaad735bf36b5dba53bfa
dist     : [zip] https://api.github.com/repos/laravel/laravel/zipball/47d7e2d490c969a91d8aaad735bf36b5dba53bfa 47d7e2d490c969a91d8aaad735bf36b5dba53bfa
names    : laravel/laravel

autoload
classmap
database
psr-4
App\ => app/

requires
php >=5.5.9
laravel/framework 5.2.*

requires (dev)
phpunit/phpunit ~4.0
fzaninotto/faker ~1.4
mockery/mockery 0.9.*
symfony/css-selector 2.8.*|3.0.*
symfony/dom-crawler 2.8.*|3.0.*
like image 45
Devon Avatar answered Oct 13 '22 17:10

Devon


1- create folder larvel in xammp/htdocs

2 start command prompt window (CMD) or terminal from the the new path

3-type that command line / terminal :

 composer create-project laravel/laravel  --prefer-dist firstapp

4- type in CMD / terminal cd(name of your project[firstap])

5-run in localhost:8000 by typeing in CMD / terminal

 php artisan serve

6-Hold 60 sec untill folders downloading in your machine

like image 4
Abubakr Elghazawy Avatar answered Oct 13 '22 18:10

Abubakr Elghazawy


Is in this way:

composer create-project --prefer-dist laravel/laravel [proyect_name]
like image 3
Cornielle Avatar answered Oct 13 '22 17:10

Cornielle