laravel-hackathon-starter icon indicating copy to clipboard operation
laravel-hackathon-starter copied to clipboard

Installation help needed for newbie

Open enthuseuser opened this issue 6 years ago • 3 comments

Hi guys,

Cloned the project and followed the installation instructions until

"php artisan key:generate"

PHP Warning: require(/var/www/html/hackathon-starter-pack/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/hackathon-starter-pack/bootstrap/autoload.php on line 17 PHP Fatal error: require(): Failed opening required '/var/www/html/hackathon-starter-pack/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/html/hackathon-starter-pack/bootstrap/autoload.php on line 17

bootstrap/audoload.php contains this code

require DIR.'/../vendor/autoload.php';

I'm not able to locate the vendor folder within this project.

How can I solve this?

enthuseuser avatar Mar 10 '18 08:03 enthuseuser

Have you done composer install? Run composer install from your command line in your root directory

remade avatar Mar 10 '18 09:03 remade

I run this before I install composer

sudo apt-get install php5.6-curl

It works now thanks.

enthuseuser avatar Mar 10 '18 13:03 enthuseuser

Following the readme instructions I too got this issue on macOS, so the apt-get suggested solution doesn't work for me.

The composer install command comes after this one according to the readme. Running composer install does fix the issue of then running php artisan key:generate. Looks like a readme documentation error to fix ?

budda avatar Dec 28 '18 20:12 budda