Error Running Laravel downloaded from Git, warning bootstrap

0

Greetings, I have downloaded a Laravel project from a repository which I am a contributor and at the time of executing it (previously I put it in htdocs and changed the execution path in Netbeans) the following error occurs:

Warning: require(C:\xampp\htdocs\Aspace\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\Aspace\bootstrap\autoload.php on line 17

Fatal error: require(): Failed opening required 'C:\xampp\htdocs\Aspace\bootstrap/../vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\Aspace\bootstrap\autoload.php on line 17

My partner says that he has uploaded the entire project to Git.

The fact is that last week I did exactly the same thing, I uploaded an entire project, and I told my compis to download it, and when they executed it, the same error came out.

Solution :::

El problema estaba en que al descargar el proyecto le faltaba el archivo .env, después de que me lo pasaran por pendrive funcionó todo.
    
asked by EduBw 22.01.2018 в 09:24
source

1 answer

0

already ran the command:

composer install

If it happens to you when executing the command you could try modifying in the file composer.json the key scripts the values of "pre-update-cmd" and "post-update-cmd":

"scripts": {
    "post-root-package-install": [
        "php -r \"copy('.env.example', '.env');\""
    ],
    "post-create-project-cmd": [
        "php artisan key:generate"
    ],
    "post-install-cmd": [
        "php artisan clear-compiled",
        "php artisan optimize"
    ],
    "pre-update-cmd": [

    ],
    "post-update-cmd": [

    ]
},

and try composer install again, if it works, you leave it as it was and it should work fine. Greetings

    
answered by 22.01.2018 в 14:01