is Closed port to install phone gap a issue?

Hi Iam trying to install phone gap through sudo npm install -g phonegap, but getting

npm ERR! Error: connect ECONNREFUSED
npm ERR!     at errnoException (net.js:904:11)

My ip host is fine but port is showing closed. Is that a issue to download phone gap through npm.

many thanks