node.js - Grunt cli install error for windows -
i trying install grunt cli windows using command "npm install -g grunt-cli" getting bellow mentioned error message, please suggest me on this.
**
npm err! error: connect econnrefused npm err! @ errnoexception (net.js:904:11) npm err! @ object.afterconnect [as oncomplete] (net.js:895:19) npm err! { [error: connect econnrefused] npm err! code: 'econnrefused', npm err! errno: 'econnrefused', npm err! syscall: 'connect' } npm err! npm err! if behind proxy, please make sure npm err! 'proxy' config set properly. see: 'npm config' npm err! system windows_nt 6.1.7601 npm err! command "c:\\program files (x86)\\nodejs\\\\node.exe" "c:\\program files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "grunt-cli" npm err! cwd c:\users\m1022339 npm err! node -v v0.10.33 npm err! npm -v 1.4.28 npm err! syscall connect npm err! code econnrefused npm err! errno econnrefused npm err! stack error: connect econnrefused npm err! stack @ errnoexception (net.js:904:11) npm err! stack @ object.afterconnect [as oncomplete] (net.js:895:19) npm err! npm err! additional logging details can found in: npm err! c:\users\m1022339\npm-debug.log npm err! not ok code 0
**
thanks, dhananjaya
solved:
we need set proxy server url command window.
set http_proxy=http : // username:password@proxy_server_ip:port
for example : set http_proxy= http : // xyz:abc123@ip:port
after setting run "npm install -g grunt-cli" command
Comments
Post a Comment