ubuntu 18 upgrade nodejs version code example
Example 1: updating node js ubuntu
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs
Example 2: Please update your node with version 8.11.3 or greater (but not version 10)
nvm install v14.15.0