I just installed phonegap and cordova using npm on my Macbook (Mac OS X Mountain Lion) using these commands on the command line.
sudo npm install -g cordova
sudo npm install -g phonegap
Both Phonegap and cordova seemed to install fine, but when I tried:
myMac:~ user$ cordova
myMac:~ user$ phonegap
I got the messages:
-bash: cordova: command not found
-bash: phonegap: command not found
both were installed, why does the command not work.