Laravel / Composer gets "Unable to scan for classes inside" for package

I add this package to my json composer and when I run the update for the composer I get this error

Could not scan for classes inside ".../vendor/artdarek/pusherer/src/migrations" which does not appear to be a file nor a folder 

This folder does not exist in the package and is not mentioned in the autoload statement in this composer.json package.

When I dig inside my composer.lock file in the pusherer section, I see this for some inexplicable reason

 "classmap": [ "src/migrations" ], 

Does anyone know what to add this to my composer.lock file?

+6
source share
2 answers

Just do composer require artdarek/pusherer without touching your composer.lock or composer.json file and everything will be fine.

if you have problems with your composer.lock file, just delete it, and when you run composer require .... from above, it will be recreated.

+3
source

Looking at the package, it seems that this line was in release 1.0.1 , but removed in release 1.0.2 . Can you delete it and then re-add using the latest version?

+2
source

All Articles