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
I tryed above comamnds npm cache clear and reinstall phoegap. It downloaded all libs but not command line scripts (phonegap command had still 3.4 as version). I found that better was to give command: npm install -g cordova (v 3.5)!