I have cloned a GitHub repository, containing a Laravel Application, into my Droplet. When I try running “composer install --prefer-dist” to pull in vendor packages, I get the following:
“[RuntimeException] Could not scan for classes inside “/var/www/html/bookmanager/vendor/laravel/framework/src/Illuminate/Queue/IlluminateQueueClosure.ph p” which does not appear to be a file nor a folder.”
Has anyone seen this before and, if so, would you mind providing some guidance on how to resolve it?
Thanks much!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This is because your composer.json cannot detect it (it is included for autoloading but it doesn’t really exist with your downloaded version of the package).
Why? When composer tries to download your projects via git it uses the parameter export-ignore.
the parameter export-ignore tells git to ignore the specified files and directories defined inside .gitattributes file. This file .gitattributes can be found in the root directory of your base code.
So make sure this file doesn’t include the file/directory causing the error.
removing vendor folder contents and running composer install to re-download whole vendor did the job for me
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.