user307709
user307709

Reputation: 265

How to fix error while installing Laravel first time?

I use a WAMP server located at drive E: and I try to install Laravel for the first time.

First I installed Composer and then I installed Laravel. Then I ran my server located at http://localhost/laravel/public/, but it gave this error:

Warning: require(E:\wamp\www\laravel\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in E:\wamp\www\laravel\bootstrap\autoload.php on line 17
Call Stack
#   Time    Memory  Function    Location
1   0.0002  241656  {main}( )   ..\index.php:0
2   0.0003  244568  require( 'E:\wamp\www\laravel\bootstrap\autoload.php' ) ..\index.php:22

( ! ) Fatal error: require(): Failed opening required 'E:\wamp\www\laravel\bootstrap/../vendor/autoload.php' (include_path='.;C:\php\pear') in E:\wamp\www\laravel\bootstrap\autoload.php on line 17
Call Stack
#   Time    Memory  Function    Location
1   0.0002  241656  {main}( )   ..\index.php:0
2   0.0003  244568  require( 'E:\wamp\www\laravel\bootstrap\autoload.php' ) ..\index.php:22

How can I prevent this error?

Upvotes: 1

Views: 925

Answers (1)

Limon Monte
Limon Monte

Reputation: 54389

You need to install project dependencies via composer. Inside the project folder run:

composer install

If you have no composer installed, here's how:

Upvotes: 2

Related Questions