I am a newbie to Laravel, have been trying to install Laravel, wasted three hours unfortunately didn\'t work. When I access through public directory, I get these errors:
This message occurs for Laravel's dependencies.
If never run composer install
in your project then run this command on the terminal.
Else run composer update --no-scripts
. All Laravel dependencies will download.
I had same problem on Windows(Also works for Mac).
Solution:
composer install
command in cmdDone!
if you are migrating the project,try to delete composer.lock
and then composer install
.this worked for me!
Your Laravel installer is giving an error.
Do composer global require "laravel/installer"
Then the new Laravel installer will be installed. Your new Laravel will not return an error then.
To get around this problem, doing a composer self-update
would do the trick. Moreover, as long as the composer
command itself works in your command-line/bash (which means you have it in your PATH) you don't necessarily need to go the actual path where composer.phar
resides in (i.e. c:/ProgramData/Composer/bin or whatsoever).
Did you install Laravel's dependencies? When you unzip the framework in your work environment (i.g. htdocs) you must install the necesary dependencies with the command php composer.phar install
(assuming you have installed composer and git). When that is done, you will be able to see the home page of the framework.