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
Download the older version. I think there was a problem in the new one
npm install -g phonegap@3.4
I tried this and worked for me.