Script @php artisan package:discover –ansi handling the post-autoload-dump event returned with error code -1073741819

Posted by

Error:

Illuminate\Foundation\ComposerScripts::postAutoloadDump > @php artisan package:discover --ansi

Solution:

Such issues may be caused by outdated (cached) local dependencies or the composer.lock file. After removing all dependencies and locking the file, you can attempt to reinstall them all.

Do this inside the app base directory to delete the downloaded dependencies;

sudo rm -rf vendor/

After that deleteĀ composer.lockĀ file by executing;

sudo rm composer.lock

And finally, execute;

composer install
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x