I want to learn node and express js. I installed nodejs perfectly in office and trying to intall expressjs using ' npm install express --g ' , But it is throwing error. I done some proxy setting also using ' npm config set proxy http://autoproxyfh.xxxx.com/VPN-US.pac:80 ' and ' npm config set proxy http://username:password@http://autoproxyfh.xxxx.com/VPN-US.pac:80 ' . But still it is throwing error. Please find the error below.
C:\Users\user\Desktop\Nodejs>npm install express --g npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\Program Files\Node.js\node.exe" "C:\Program Files\Node.js \node_modules\npm\bin\npm-cli.js" "install" "express" "--g" npm ERR! node v6.4.0 npm ERR! npm v3.10.3 npm ERR! code ECONNRESET
npm ERR! network tunneling socket could not be established, cause=connect ECONNR EFUSED 10.220.81.10:80 npm ERR! network This is most likely not a problem with npm itself npm ERR! network and is related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settin gs. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! Please include the following file with any support request: npm ERR! C:\Users\RaviKanth.Yandluri\Desktop\Nodejs\npm-debug.log
and tried with another possibility but still throwing error.
C:\Users\user\Desktop\Nodejs>npm config set registry http://regist ry.npmjs.org/
C:\Users\user\Desktop\Nodejs>npm install express npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\Program Files\Node.js\node.exe" "C:\Program Files\Node.js \node_modules\npm\bin\npm-cli.js" "install" "express" npm ERR! node v6.4.0 npm ERR! npm v3.10.3 npm ERR! code ECONNREFUSED npm ERR! errno ECONNREFUSED npm ERR! syscall connect
npm ERR! Error: connect ECONNREFUSED 10.1.2.50:80 npm ERR! at Object.exports._errnoException (util.js:1026:11) npm ERR! at exports._exceptionWithHostPort (util.js:1049:20) npm ERR! at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1081:14) npm ERR! { Error: connect ECONNREFUSED 10.1.2.50:80 npm ERR! at Object.exports._errnoException (util.js:1026:11) npm ERR! at exports._exceptionWithHostPort (util.js:1049:20) npm ERR! at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1081:14) npm ERR! code: 'ECONNREFUSED', npm ERR! errno: 'ECONNREFUSED', npm ERR!
syscall: 'connect', npm ERR! address: '10.1.2.50', npm ERR! port: 80 } npm ERR! npm ERR! If you are behind a proxy, please make sure that the npm ERR! 'proxy' config is set properly. See: 'npm help config'npm ERR! Please include the following file with any support request: npm ERR! C:\Users\user\Desktop\Nodejs\npm-debug.log