# step 1: specify node version (e.g: ~10.x) curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - # step 2: install sudo apt install nodejs