I have downloaded our Laravel project from bitbucket
using
git clone https://[email protected]/team/project.git
Then I tried composer install
php artisan clear-compiled PHP Warning: require(/home/sachith/xxxx/xxx_y/bootstrap/../vendor/autoload.php):
failed to open stream: No such file or directory in /home/sachith/xxxx/xxx_y/bootstrap/autoload.php on line 17
PHP Fatal error: require(): Failed opening required '/home/sachith/xxxx/xxx_y/bootstrap/../vendor/autoload.php'
(include_path='.:/usr/share/php:/usr/share/pear') in
/home/sachith/xxxx/xxx_y/bootstrap/autoload.php on line 17
Script php artisan clear-compiled handling the pre-install-cmd event returned with error code 255
I am confused how to run this, What did I miss here? How to run this properly?
See laravel issue 5066 and PR 3687
(that recent change can affect some existing projects)
So maybe your
composer.lock
is missing from your repo? With the latest composer version, doing a fresh install will fail because the vendor files are not yet present.