Nodejs 6 on Ubuntu 16.04 LTS

Nodejs 6 on Ubuntu 16.04 LTS

ERROR : Buffer.alloc is not a function

Fix: upgrade nodejs to Version > 5.1

curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -
sudo sh -c "echo deb https://deb.nodesource.com/node_6.x yakkety main \ > /etc/apt/sources.list.d/nodesource.list" 
sudo apt-get update
sudo apt-get install nodejs