Creating New Laravel Project via Composer Fails with Error Class Arrayloader Not Found

Laravel Symfony ArrayLoader not found

Temporary solution :

You can quick fix it by adding temporarily this line to your composer.json

"symfony/translation": "v5.3.7",

It's due to a "minor" release of the package this morning

Valet is working but can't create a new Laravel install?

First, download the Laravel installer using Composer:

composer global require laravel/installer

Make sure to place Composer's system-wide vendor bin directory in your $PATH so the laravel executable can be located by your system. This directory exists in different locations based on your operating system; however, some common locations include:

macOS and GNU / Linux Distributions: $HOME/.config/composer/vendor/bin

Then you'll be able to execute laravel new blog

Error with Composer Install - could not scan for classes inside a library dependency in /vendor directory

I think that some file is corrupted. To solved, you should delete vendor folder and run composer install.

Update:

You should downgrade version of composer, you should use composer self-update 2.0.4

Laravel Installer method

The Composer Assets Plugin you've installed locally is using a deprecated method of Composer. The plugin is already fixed, so run composer global update to get the latest versions with the bug fix. After it, you should be able to run the command succesfully.

If this doesn't work (as you might get the same error running the previous command), try removing the global vendor directory. When running any global Composer command, it outputs something like "Changed current directory to XXX". Remove the XXX/vendor directory and then try running the command.

Class 'Illuminate\Http\Response' not found

looks like somthing wrong with your vendor folder so remove old vendor folder then

run this cmd
composer install then composer dump-autoload

here composer install will install all the dependency of your project
and composer dump-autoload will load all the file which is necessary to work with those dependency



Related Topics



Leave a reply



Submit