New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Protocol "https:" not supported. Expected "http:" #2003
Comments
This PR might help: |
Using |
I got the same error in my macOS with the same node/npm version. I've fixed this error by unset all the proxy environment:
You can run |
updating npm to anything newer than 7.0.6 should correct this as that's when we brought in the updated agent-base dependency |
change the url to https:// instead of http:// , Mine was type mistake |
LP employs a HTTP proxy so try and make sure this can be used successfully as the older version of https-proxy-agent has known issues - e.g. npm/cli#2003
Downgrading npm from 8.1.4 to 6.14.15 fixes issue. |
Thank you Bro This work for me |
Upgraded from node 14 to node 15.0.0
Upgraded npm to 7.0.3
Current Behavior:
Running the command
npm install -g npm-check-updates
I get the following that doesn't happened in v6.14
The error log is:
My npm config doesn't change too:
proxy=http://my.proxycompany.com:80/
http-proxy=http://my.proxycompany.com:80
https-proxy=http://my.proxycompany.com:80/
registry=https://registry.npmjs.org/
strict-ssl=false
EDIT
Changing registry to http it works, but I don't know why.
registry=http://registry.npmjs.org/
Expected Behavior:
Run npm install and install the library successfully.
Environment:
The text was updated successfully, but these errors were encountered: