If the above return is not empty, npm config set proxy null or npm config delete proxy, by the way, turn off the https proxy npm config set https-proxy null. If there is a certificate problem, turn off the verification of the certificate npm config set strict-ssl false, of course the above You don’t need to type all the commands. According to the error message, select the corresponding solution, and then try again
If the command 1 is empty, check if there is HTTP_PROXY in your environment variable
1. Network problem 2. Have you set up a global proxy, change or clear it (delete .npmrc/.cnpmrc files) 3. Use Taobao source 4. Try to hang up a VPN. . . .
run
npm config get proxy
See what you getIf the above return is not empty,
npm config set proxy null
ornpm config delete proxy
, by the way, turn off the https proxynpm config set https-proxy null
. If there is a certificate problem, turn off the verification of the certificatenpm config set strict-ssl false
, of course the above You don’t need to type all the commands. According to the error message, select the corresponding solution, and then try againIf the command 1 is empty, check if there is HTTP_PROXY in your environment variable
Have you enabled global proxy?
There is a network problem, it is recommended to try another network
Hello, has it been resolved? I also have this problem
1. Network problem
2. Have you set up a global proxy, change or clear it (delete .npmrc/.cnpmrc files)
3. Use Taobao source
4. Try to hang up a VPN. . . .
I’ve been struggling for a long time today. I’ve tried all the methods from everyone above but can’t figure it out.
My final solution is:
Delete the folder "node_modules" under the current project directory, and then run again: npm install
Perfect solution! !
Why was my answer ignored?