DEV Community

Cover image for Resolved error: Unable to use proxy: URL http_proxy formatted incorrectly, in composer
Alfa Riza
Alfa Riza

Posted on

Resolved error: Unable to use proxy: URL http_proxy formatted incorrectly, in composer

Assalamualaikum warahmatullahi wabarakatuh, hello everyone, this time I will share my experience with the composer error, which is Unable to use a proxy: malformed http_proxy URL.

If you are experiencing the same problem, you can check out this article. So I haven't coded Laravel for 6 months and my laptop had Windows reinstalled. When I install laravel via composer there is an error.

image

This problem arises because on our laptop / computer there is an environment variable http_proxy which contains the code http_proxy, the way to solve this is to delete the environment variable.

Open the control panel on our laptop / computer.

image

Then select system and security, then select system.

image

image

Select advanced system settings

image

Select environment variables

image

If there are user variables with the name http_proxy, click and delete. Then your problem is solved.
So many articles, hopefully useful and thank you.

Top comments (0)