If you are install packages and got error "make: node-waf: Command not found", which I got when I was
npm install ws npm install websocket
Both packages need node-waf / to compile things locally.
Where is node-waf? Google may tell you it is at /usr/local/bin/node-waf if you compiled node.js from the source and it is the only way you can get it.
The second half is wrong! You can get it by installing nodejs-dev package.
As stated in here
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
It installs current stable Node on the current stable ubuntu.
If you want to compile Node C++ modules:
sudo apt-get install nodejs-dev
Or configure shell script for install node.js using http://apptob.org