Skip to main content

Install and use latest nodejs

sudo apt purge nodejs npm

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash

exit

Open new terminal

nvm install node

nvm alias default node

Use the second commands to update to latest nodejs when you want ...