Now start the web server using the command. Create a file demo_server.js vim demo_server.jsĪnd add the following content var http = require('http') Let’s create a web server with the “Welcome Node.js” text. If you want to test your node.js install. Step 4 – Create Demo Web Server (Optional) You can find more details about the current version on node.js official website. Don’t Miss => Yarn Installation ( A Node Modules Manager)Īfter installation checks the installed version of Node.js.This command will also install many other dependent packages on your system. You also need development tools to build native add-ons to be installed on your system.įor Latest Release:- sudo yum install -y gcc-c++ make curl -sL | sudo -E bash -įor Stable Release:- sudo yum install -y gcc-c++ make curl -sL | sudo -E bash - Step 2 – Install Node.js on Amazon Linux 2Īfter adding a yum repository to your system let’s install the Node.js package. Step 1 – Configure Yum Repositoryįirst of all, You need to enable the node.js yum repository in your system provided by the Node.js official website. To install the specific Node.js version, Visit our tutorial Install Specific Node.Js Version with NVM.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |