http-proxy = "http://proxy.company.com:8080"

I am trying to set up phonegap. After installing node js, when I try to do sudo npm install -g phonegap it's giving me errors.

my npm looks like this:

http-proxy = "http://<proxy.company>.com:8080"
https-proxy = "http://<usr:pass>@hostid:port/"
proxy = "http://<usr:pass>@hostid:port/"
registry = "http://registry.npmjs.org/"

I have tried various options found in forums, but none seems to work for me.

This is the error I am getting currently:

npm ERR! Error: connect ECONNREFUSED
npm ERR!     at errnoException (net.js:904:11)
npm ERR!     at 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 you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly.  See: 'npm help config'

npm ERR! System Darwin 11.4.2
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "phonegap"
npm ERR! cwd /Users/user
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.23
npm ERR! syscall connect
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! stack Error: connect ECONNREFUSED
npm ERR! stack     at errnoException (net.js:904:11)
npm ERR! stack     at Object.afterConnect [as oncomplete] (net.js:895:19)
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/<user>/npm-debug.log
npm ERR! not ok code 0

Any idea, what's going wrong here? I'm stuck with for the day, i guess my http and https are incorrect. Thanks!