Solve the problem of NPM install (‘proxy ‘config is set properly. See:’ NPM help config ‘) failure

Time:2020-12-30

abstract

  After reinstalling the computer system, NPM install failed to initialize the project dependency. The error prompt is’ proxy ‘config is set properly

 

Solution

  After the error information query solution, finally found two better solutions, here to summarize, in order to meet this kind of problem next time.

Scheme 1: configure the agent you are using in NPM.

npm config set proxy http://:
npm config set https-proxy http://:

Scheme 2: clear the proxy and cache in NPM.

npm config set proxy false
npm cache clean --force

 

reference:

  https://stackoverflow.com/questions/25826839/node-npm-install-failure-due-to-proxy-config-what-now

  https://www.jianshu.com/p/d65f8c79d85c