isaacs/npm — Issue #1675: Error: EAFNOSUPPORT, Address family not supported by protocol family 
Author: sleepyfox
Created: 2011-11-08 17:56:42+00:00
State: open

I get the following error whilst attempting to do a 'npm install winston':

npm ERR! error installing winston@0.5.6 Error: EAFNOSUPPORT, Address family not supported by protocol family
npm ERR! error installing winston@0.5.6 at doConnect (net.js:549:5)
npm ERR! error installing winston@0.5.6 at net.js:725:9
npm ERR! error installing winston@0.5.6 at dns.js:196:34
npm ERR! error installing winston@0.5.6 at IOWatcher.callback (dns.js:74:15)
npm ERR! Error: EAFNOSUPPORT, Address family not supported by protocol family
npm ERR! at doConnect (net.js:549:5)
npm ERR! at net.js:725:9
npm ERR! at dns.js:196:34
npm ERR! at IOWatcher.callback (dns.js:74:15)
npm ERR! Report this *entire* log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Darwin 10.8.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "winston"
npm ERR! cwd /Users/nrm/Dropbox/development/vet-ct
npm ERR! node -v v0.4.12
npm ERR! npm -v 1.0.103
npm ERR! code EAFNOSUPPORT
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/nrm/Dropbox/development/vet-ct/npm-debug.log
npm not ok