Installation (I)
Install node.js
_$: sudo apt-get install nodejs
Install npm
_$: sudo apt-get install npm
_$: sudo ln -s /usr/bin/nodejs /usr/bin/node
Install phonegap
_$: sudo npm install -g phonegap@latest
_$: sudo npm update -g
Install cordova
_$: sudo npm install -g cordova
_$: sudo npm update -g
Install camera plugin
_$: cordova plugin add cordova-plugin-camera
Uninstall
_$: sudo npm uninstall -g cordova
_$: sudo npm uninstall -g phonegap
_$: sudo apt-get purge nodejs
_$: sudo apt-get autoremove