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

samirapadidar's avatar

curl error 5 while downloading https://repo.packagist.org/p2/stevebauman/location.json: Could not resolve proxy: my.proxyserver.net

I am trying to run composer require stevebauman/location in laravel! but i get flowing errore

You are running Composer with SSL/TLS protection disabled.
https://repo.packagist.org could not be fully loaded (curl error 5 while downloading https://repo.packagist.org/packages.json: Could not resolve proxy: my.proxyserver.net), package information was loaded from the local cache and may be out of date

In CurlDownloader.php line 377:
                                                                                                                                       
  curl error 5 while downloading https://repo.packagist.org/p2/stevebauman/location.json: Could not resolve proxy: my.proxyserver.net  
                                                                                                                                       

require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>...]

how can I fix this error??

pleas help me!!

0 likes
11 replies
shaungbhone's avatar

I think the problem seems to be connected to your system. Restart your computer and try it again.

Sinnbeck's avatar

Are you behind some proxy at work? Can you try another internet connection?

Sinnbeck's avatar

@samirapadidar perhaps they and use your mobile as a Hotspot and see if it works then (turn off wifi on the phone)

samirapadidar's avatar

@Sinnbeck when I use mobile data i get the flowing error

curl error 7 while downloading https://repo.packagist.org/p2/stevebauman/location.json: Failed to connect to my.proxyserver.net port 8080: Connection refused 
Sinnbeck's avatar

@samirapadidar did you install anything on the computer itself to use that proxy? my.proxyserver.net sounds like a none existing proxy so probably misconfigured

Please or to participate in this conversation.