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

mihcael's avatar

Error while trying to install Laravel Jetstream

When I try to run command "composer require laravel/jetstream" it keeps on showing me an error message "repo.packagist.org could not be fully loaded (curl error 7 while downloading repo.packagist.org/packages.json: Failed to connect to 127.0.0.1 port 7578: Connection refused), package information was loaded from the local cache and may be out of date" could you please help me with this

0 likes
6 replies
Tray2's avatar

I just tried running that and I had no issues what so ever.

Are you running the command in the correct directory?

Are you sure the internet connection is working properly?

Have you by any change updated your hosts file?

Looks like this url points to your local host for some reason

repo.packagist.org/

mihcael's avatar

Yes I am running the command in correct directory And the internet connection is working properly I just installed laravel 8 though it I havent made any changes to the host files

Tray2's avatar

@mihcael What happens if you do this?

curl repo.packagist.org/packages.json
mihcael's avatar

@Tray2 I got this message "curl: (7) Failed to connect to 127.0.0.1 port 7578: Connection refused"

Tray2's avatar

@mihcael That means that the repo.packigist.org points to your localhost (127.0.0.1).

Check your hosts file and make sure it does not have that in it.

Have you by any chance installed any dns-server?

Please or to participate in this conversation.