Express installation failed

  node.js, question
The npm and nodejs installed under the window platform are installed, and an error will be reported when executing the npm install -g express-generator under' cmd'.

Error message:

0 info it worked if it ends with ok
 1 verbose cli [ 'e:\\Program Files\\nodejs\\node.exe',
 1 verbose cli   'e:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
 1 verbose cli   'install',
 1 verbose cli   '-g',
 1 verbose cli   'express-generator' ]
 2 info using npm@2.14.12
 3 info using node@v4.2.6
 4 verbose install initial load of E:\Program Files\nodejs\node_global\package.json
 5 verbose readDependencies loading dependencies from E:\Program Files\nodejs\node_global\package.json
 6 silly cache add args [ 'express-generator', null ]
 7 verbose cache add spec express-generator
 8 silly cache add parsed spec Result {
 8 silly cache add   raw: 'express-generator',
 8 silly cache add   scope: null,
 8 silly cache add   name: 'express-generator',
 8 silly cache add   rawSpec: '',
 8 silly cache add   spec: 'latest',
 8 silly cache add   type: 'tag' }
 9 silly addNamed express-generator@latest
 10 verbose addNamed "latest" is being treated as a dist-tag for express-generator
 11 info addNameTag [ 'express-generator', 'latest' ]
 12 silly mapToRegistry name express-generator
 13 silly mapToRegistry using default registry
 14 silly mapToRegistry registry
 15 silly mapToRegistry uri
 16 verbose addNameTag registry: not in flight;  fetching
 17 verbose request uri
 18 verbose request no auth needed
 19 info attempt registry request try #1 at 00:42:40
 20 verbose request id fa5de0a8e80cd59f
 21 http request GET
 22 info retry will retry, error on last attempt: Error: socket hang up
 23 info attempt registry request try #2 at 00:44:03
 24 http request GET
 25 info retry will retry, error on last attempt: Error: read ECONNRESET
 26 info attempt registry request try #3 at 00:45:40
 27 http request GET
 28 verbose stack Error: read ECONNRESET
 28 verbose stack     at exports._errnoException (util.js:870:11)
 28 verbose stack     at TLSWrap.onread (net.js:544:26)
 29 verbose cwd e:\Program Files\nodejs
 30 error Windows_NT 6.3.9600
 31 error argv "e:\\Program Files\\nodejs\\node.exe" "e:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "express-generator"
 32 error node v4.2.6
 33 error npm  v2.14.12
 34 error code ECONNRESET
 35 error errno ECONNRESET
 36 error syscall read
 37 error network read ECONNRESET
 37 error network This is most likely not a problem with npm itself
 37 error network and is related to network connectivity.
 37 error network In most cases you are behind a proxy or have bad network settings.
 37 error network
 37 error network If you are behind a proxy, please make sure that the
 37 error network 'proxy' config is set properly.  See: 'npm help config'
 38 verbose exit [ 1, true ]

What is the reason ..

Update: I turned off the fq and installed it. I entered the questionexpress -vWhy can’t I use it … I’ve already run itnpm install -g express-generatorThe ah ..


See if you opened the agent at last, try closing the agent before installing it.