How to fix error while installing Laravel first time?
Ad
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?
Ad
Answer
Ad
You need to install project dependencies via composer. Inside the project folder run:
composer install
If you have no composer installed, here's how:
Ad
source: stackoverflow.com
Related Questions
Ad
- → "failed to open stream" error when executing "migrate:make"
- → October CMS Plugin Routes.php not registering
- → OctoberCMS Migrate Table
- → OctoberCMS Rain User plugin not working or redirecting
- → October CMS Custom Mail Layout
- → October CMS - How to correctly route
- → October CMS - Conditionally Load a Different Page
- → Make a Laravel collection into angular array (octobercms)
- → In OctoberCMS how do you find the hint path?
- → How to register middlewares in OctoberCMS plugin?
- → Validating fileupload(image Dimensions) in Backend Octobercms
- → OctoberCMS Fileupload completely destroys my backend
- → How do I call the value from another backed page form and use it on a component in OctoberCms
Ad