Skip to content

npm error code ERR_INVALID_URL #169704

Discussion options

You must be logged in to vote

Thank You all of you
The error was that i was mistakenly set HTTP_PROXY and HTTPS_PROXY to HTTP_PROXY=http://proxy-server:port
HTTPS_PROXY=http://proxy-server:port
To fix it I just remove both values from System Env
Here is Steps
Press Win + R → type sysdm.cpl → press Enter.

Go to Advanced → Environment Variables.

In both User variables and System variables, look for:

HTTP_PROXY

HTTPS_PROXY

Select each one → click Delete → OK.

Close and reopen your terminal/VS Code.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Prathamesh-Kothalkar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
npm
Labels
Question Ask and answer questions about GitHub features and usage npm Discussions around programming langages, open source and software development
4 participants