What is Node.js
Node.js’ package ecosystem, npm, is the largest ecosystem of open source libraries in the world.
With that said, let’s create our first node app, a simple Hello World.
First you need to check if you have node installed in your system, to do that, open a console and type: node -v. The output should be the version of node installed in your system.
If a different message appears, you probably don’t have node installed, so follow the steps to install it. On Linux, open a console and run these commands.
$ cd ~ $ curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh $ sudo bash nodesource_setup.sh $ sudo apt-get install nodejs build-essential
If you are a Windows or Mac user, refer to node website for more details on how to install it on your platform.