I have been searching for a solution for two days now to setup Phonegap on my Windows 8.1 system without any success.
Whenever I try to install Phonegap through npm
Problem
We published with a dependency on a branch of cordova-lib. This fork appears unavailable when lots of requests are coming through (I think). One way or another, it's unreliable. Changing the dependency to 0.21.3 will cause commands to fail, but will allow the install.
Solutions
update the 'cordova-lib' dependency to the npm published version '0.21.3' **note, this will allow the install, but other phonegap commands will fail
wait for about 20 minutes, then npm update -g phonegap testing an update to resolve this issue
further updates momentarily
update We've pushed version 3.5.0-0.20.3 which should resolve this issue
$ npm update -g phonegap
if that doesn't work, try
$ npm cache clean
and reinstall phonegap