Node.js is an open-source software that is available for free download on the Node.js download page.
For example, to install Node.js LTS (v12.x) on Ubuntu, you can run the following commands:
curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs
Running a JavaScript application with Node.js is quite simple. Let's create a file called index.js with the following content:
console.log('Hello World');
Save the file and run the following command in the command line:
node index.js
Output:
Hello World
5 profound lessons
Every product comes with stories. The success of others is an inspiration for many to follow. 5 lessons learned have changed me forever. How about you? Click now!
Subscribe to receive new article notifications
Comments (1)