Для версии 5.x Согласно PPA:
apt-get remove --purge nodejs npm curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash - apt-get install nodejs