Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 5.5 install not generating .env file

I have installed laravel 5.4 multiple times. Now I'm trying to install laravel 5.5 using same command And it doesn't work.

composer create-project --prefer-dist laravel/laravel blog dev-develop

It doesn't seem to have any errors on installation, only lot of suggestions. But no key is generated and no .env file is created. When I try to make php artisan key:generate

/public_html/blog/.env): failed to open stream: No such file or directory
like image 260
Kezern Avatar asked Sep 05 '17 10:09

Kezern


2 Answers

Got the same problem days a go, the problem was because composer was not updated, solved it updating composer, you can run:

composer self-update

Or you can download the latest version there, then you can create the project again and the .env file will be automatically created.

like image 63
Troyer Avatar answered Oct 03 '22 06:10

Troyer


I have this version

Composer version @package_branch_alias_version@ (1.0.0-beta2) 2016-03-27 16:00:34

When I run composer self-update I get

 [InvalidArgumentException]
 Command "self-update" is not defined.
like image 34
Kezern Avatar answered Oct 03 '22 06:10

Kezern