paulalexandru
paulalexandru

Reputation: 9530

Laravel 5 composer problems

I try to run this command:

composer create-project laravel/laravel my-new-app dev-develop 

And i get this error:

 [RuntimeException]
 Error Output: PHP Fatal error:  Uncaught exception 'InvalidArgumentExceptio
 n' with message 'Dotenv: Environment file .env not found. Create file with
 your environment settings at C:\wamp\www\my-new-app\bootstrap/../.env' in C
 :\wamp\www\my-new-app\vendor\vlucas\phpdotenv\src\Dotenv.php:20
 Stack trace:
 #0 C:\wamp\www\my-new-app\bootstrap\environment.php(16): Dotenv::load('C:\w
 amp\www\my-...')

 #1 C:\wamp\www\my-new-app\bootstrap\start.php(27): require('C:\wamp\www\my-
 ...')

 #2 C:\wamp\www\my-new-app\artisan(30): require_once('C:\wamp\www\my-...')

 #3 {main}
   thrown in C:\wamp\www\my-new-app\vendor\vlucas\phpdotenv\src\Dotenv.php o
 n line 20

Am I completely missing something?

Upvotes: 0

Views: 1019

Answers (3)

rezaruslan94
rezaruslan94

Reputation: 11

Via Composer Create Project

composer create-project laravel/laravel you_blog "5.1.*"

or you can visit to https://laravel.com/docs/5.1

Upvotes: 1

anvanza
anvanza

Reputation: 83

There's a file called .env.example , rename that file to .env and do a composer update.

BTW: You're downloading Laravel 5 (still Alpha)

Upvotes: 0

Fran Varney
Fran Varney

Reputation: 44

You need to add --prefer-dist:

composer create-project laravel/laravel my-new-app dev-develop --prefer-dist

Upvotes: 0

Related Questions