I installed Cordova and PhoneGap with npm:
sudo npm install -g cordova
sudo npm install -g phonegap
/usr/bin/env: node: No such file or directory
Create a shortcut is
ln -s /usr/bin/nodejs /usr/local/bin/node
According to The Linux Documentation Project, distributions may not install anything in there. It is reserved solely for the use of the local administrator.
This way he/she can be absolutely certain that no updates or upgrades to his distribution will overwrite any extra software he has installed locally.