About Nodejs How to install I will not list, online more is a tutorial.
General network environment, if we want to install express.js these, only need to execute NPM install Express, but when everyone in a proxy Internet environment, this error. How to do the NPM command proxy settings, is the next I focus on, but also I personally practiced.
To solve the proxy problem, you might find 1 similar descriptions, add settings under the C:\users\ account name \.NPMRC This file, and when you enter this directory, there is no . NPMRC file, then you try to create a new one, But you are prompted to type the file name of the headache problem.
Here I'll talk about 1 settings in the Windows environment, where we use the following command in the Node command line window:
NPM Config set https-proxy=http://username: password @ agent host/
NPM config set proxy=/HTTP User name: password @ Agent host/
Then you will find the C:\users\ account name \ This directory artifact has appeared . NPMRC this file, here, you might think you're done, can't wait to try, in the node command line window input NPM Install Express -G This command, suddenly found out the inexplicable error, careful you can capture the registry.npmjs.org such words, Baidu discovered is a XX address.
It's okay, let's go ahead and set
NPM Config setregistry=http://registry.npmjs.org/
here, should solve your NPM agent problem, hope to help you.
Nodejs NPM Install proxy settings