Yesterday, i was working on my laravel application and when i require to create new clean fresh laravel repository then i run bellow command for getting new fresh laravel project:
composer create-project --prefer-dist laravel/laravel blog
But, when installing vendor package i found bellow error regrading of phpunit.
"Skipped installation of bin phpunit for package phpunit/phpunit: file not found in package"
and i found error with red color background :
"Could not scan for classes inside "/blog/vendor/phpunit/php
-code-coverage/src/" which does not appear to be a file nor a folder"
I tried to again composer install but same error come always, i tried again with composer update but same result. I also search on google but i can't solve this error. At last i checked all package installation and i found solution of this error. This error come because of cache packages issue. So i clear composer cache first by using following command:
composer clearcache
After this i run again bellow command and i solved my problem.
composer create-project --prefer-dist laravel/laravel blog
If you have then try this one.
Do you like below Tutorials ?
- PHP Laravel 5.5 - import export data into excel and csv using maatwebsite
- Laravel 7.x and 6.x create custom facade example from scratch
- Node JS - Get Real time online users counter using socket io example
- PHP Laravel 7.x and 6.x - Bootstrap Admin Theme Integration example from scratch
- MySQL Query - How to select records of today to next Sunday ?
- Laravel 7.x and 6.x - username custom validation example
- Laravel 5.5 - Import Extract zip file using chumper/zipper package
- PHP Laravel Set Custom Validation Error Messages Example