Error trying to install Node Express

I try to install node express by running npm install express -g , but I get this error in the console window. I have installed

HTTP_PROXY - http: //: @ my-proxy: 8080

A...

no_proxy - localhost, 127.0.0.1

Error

 C:\>npm install express -g npm http GET http://registry.npmjs.org/express npm http GET http://registry.npmjs.org/express npm http GET http://registry.npmjs.org/express npm ERR! Error: getaddrinfo ENOTFOUND npm ERR! at errnoException (dns.js:37:11) npm ERR! at Object.onanswer [as oncomplete] (dns.js:124:16) npm ERR! If you need help, you may report this log at: npm ERR! <http://github.com/isaacs/npm/issues> npm ERR! or email it to: npm ERR! < npm-@googlegroups.com > npm ERR! System Windows_NT 5.1.2600 npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "express" "-g" npm ERR! cwd C:\ npm ERR! node -v v0.8.21 npm ERR! npm -v 1.2.11 npm ERR! syscall getaddrinfo npm ERR! code ENOTFOUND npm ERR! errno ENOTFOUND npm ERR! npm ERR! Additional logging details can be found in: npm ERR! C:\npm-debug.log npm ERR! not ok code 0 
+4
source share

Source: https://habr.com/ru/post/1484182/


All Articles