Which Laravel version ?
Have you checked the PHP version ?
Have you upgraded composer to the last version ?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello, I am new to Laravel.
I am trying to install composer with command composer install but I have been having this error with composer dump-autoload also.
I am unable to install any packages. Following suggestions on stackoverflow, I even updated composer by running composer global update. I have no clue what's happening. Please help.
composer install
Installing dependencies from lock file (including require-dev) Verifying lock file contents can be installed on current platform. Package operations: 17 installs, 0 updates, 0 removals
Illuminate\Foundation\ComposerScripts::postAutoloadDump Script Illuminate\Foundation\ComposerScripts::postAutoloadDump handling the post-autoload-dump event terminated with an exception
In autoload_real.php line 41:
require(/vendor/composer/../paragonie/sodium_compat/autoload.php): failed to open stream: No such file or d irectory
install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--download-only] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [--audit] [--audit-format AUDIT-FORMAT] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [...]
Please or to participate in this conversation.