Skip to main content
added 18 characters in body
Source Link
Lying_cat
  • 1.5k
  • 2
  • 13
  • 17

There has been many answers above for this question, but none of those worked for me. All of them mentioned to add http:// prefix. So I added it too. All failed.

It finally works after I accidentally removed http:// prefix. Final config is like this:

npm config set registry http://registry.npmjs.org/ npm config set http-proxy ip:port npm config set https-proxy ip:port npm config set proxy ip:port npm set strict-ssl false

npm config set registry http://registry.npmjs.org/ npm config set http-proxy ip:port npm config set https-proxy ip:port npm config set proxy ip:port npm set strict-ssl false 

I don't know the logic behind this, but it worked. If none of answers above works for you, maybe you can have a try on this way. Hope this one is useful.

There has been many answers above for this question, but none of those worked for me. All of them mentioned to add http:// prefix. So I added it too. All failed.

It finally works after I accidentally removed http:// prefix. Final config is like this:

npm config set registry http://registry.npmjs.org/ npm config set http-proxy ip:port npm config set https-proxy ip:port npm config set proxy ip:port npm set strict-ssl false

I don't know the logic behind this, but it worked. If none of answers above works for you, maybe you can have a try on this way. Hope this one is useful.

There has been many answers above for this question, but none of those worked for me. All of them mentioned to add http:// prefix. So I added it too. All failed.

It finally works after I accidentally removed http:// prefix. Final config is like this:

npm config set registry http://registry.npmjs.org/ npm config set http-proxy ip:port npm config set https-proxy ip:port npm config set proxy ip:port npm set strict-ssl false 

I don't know the logic behind this, but it worked. If none of answers above works for you, maybe you can have a try on this way. Hope this one is useful.

Source Link
Lying_cat
  • 1.5k
  • 2
  • 13
  • 17

There has been many answers above for this question, but none of those worked for me. All of them mentioned to add http:// prefix. So I added it too. All failed.

It finally works after I accidentally removed http:// prefix. Final config is like this:

npm config set registry http://registry.npmjs.org/ npm config set http-proxy ip:port npm config set https-proxy ip:port npm config set proxy ip:port npm set strict-ssl false

I don't know the logic behind this, but it worked. If none of answers above works for you, maybe you can have a try on this way. Hope this one is useful.