I have a trouble with npm and I haven\'t found solution in web.
Today I wanted to start my adventure with nodejs, npm, bower etc.
I use Windows 8.1.
I was getting the same error. But I found that this was Windows Firewall problem.
Make sure your firewall is not preventing any Incoming connections or there is no limit on TCP connections.