Recently, I bought a new computer with win7 installed, but I don’t know why there is such an error when installing npm after installing nodejs. After reading a lot online, I said it was a proxy problem. I set registry as the mirror image of Taobao in China, but it still doesn’t work, so I asked Daniel for an answer. ..
npm config get proxyLook what you got.
If the above return is not empty,
npm config set proxy nullOr ..
npm config delete proxy, by the way, turn off https agent also
npm config set https-proxy null, certificate problem, turn off the certificate check
npm config set strict-ssl false, of course, you don’t have to type all the above commands, according to the error message prompt, choose the corresponding solution, and then try again
If the command of 1 is empty, check if there is HTTP_PROXY in your environment variable
Is there a global agent