Both npm -v and node-v can be printed out.
But npm install reports an error!
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