I have encountered an issue which you might need to deal with too. I installed a npm package with such command:
$ sudo npm install -g cordovaWhen installation was completed, i tried to run cordova but i got that error:
$ cordova
/usr/bin/env: node: No such file or directory
I did a lot of research about it , and the easiest solution i have found is to install nodejs-legacy with apt-get like this:
$ sudo apt-get install nodejs-legacy
I hope this will solve your problem. :P