Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel/Composer getting "Could not scan for classes inside" for package

I'm adding this package to my composer json and when I run composer update I'm getting 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 doesn't exist in the package, nor is it referenced in an autoload statement in that package composer.json.

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

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

Anybody have any clue what's adding this to my composer.lock file?

like image 529
NiRR Avatar asked May 29 '16 16:05

NiRR


2 Answers

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

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

like image 148
Davor Minchorov Avatar answered Nov 06 '22 15:11

Davor Minchorov


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

like image 40
Jeff Avatar answered Nov 06 '22 16:11

Jeff