'Ubuntu 14 nodejs install with apt-get node fails to run in console

I have run sudo apt-get install nodejs and I expected that when I now type node in the terminal I would go into the node shell. or if I type node --version I would see the version instead nothing happens no errors, results, anything the terminal just goes to a new line like I pressed enter without typing anything. ive been googling for the last two hours and have found nothing.



Solution 1:[1]

Use this commands

sudo apt install curl
curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -
sudo apt install -y nodejs

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sourabh Verma