Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

uxmahbub's avatar

Why showing this error??

When I command to create a laravel project. Given error is shown

Content-Length mismatch, received 396237 bytes out of the expected 679025 http://repo.packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date

0 likes
5 replies
Sergiu17's avatar

Try to clear the cache

composer clear-cache
2 likes
vivekbansal's avatar

Nothing is happening by clearing cache. I did composer self-update

I removed composer than reinstalled it.

Done many other things like changing composer.json file etc etc.

Still the problem persist.

Not able to download laravel on my system.

Any help would be appreciated.

vivekbansal's avatar

Nothing is happening by clearing cache. I did composer self-update

I removed composer than reinstalled it.

Done many other things like changing composer.json file etc etc.

Still the problem persist.

Not able to download laravel on my system.

Any help would be appreciated.

Tray2's avatar

Are you using the Laravel installer or plain old composer create-project laravel/laravel <project-name>?

Please or to participate in this conversation.