

Load the http module to create an http server. (See this link to know basic vi commands). Type i to insert text into the editor.Type vi app.js to open vi editor to create file named app.js.This means that node terminal is running successfully.

Now, when you run node, it should display >.Run sudo ln -s /usr/bin/nodejs /usr/bin/node.Type which nodejs you will be provided with the install location as /usr/bin/nodejs.You can install it by typing: sudo apt install nodejs-legacy”, you need to debug further: If it says, “The program ‘node’ is currently not installed.If it displays >, you are good to proceed. You will be prompted to download an archive. Install Node Package Manager (npm) sudo apt-get install npm You will be prompted to download 3 MB archive. Install NodeJS using advanced packaging tool sudo apt-get install nodejs Read this article to know how to launch Ubuntu 16.04 using Amazon EC2.įollowing steps can be performed using any SSH terminal like PuTTY. Configuring it in Amazon EC2 instance is as similar as configuring it in our local machine. For a machine to run NodeJS, it should be configured. It is a server-side programming to build network applications using JavaScript. Node.js is a JavaScript runtime built on Chrome’s V8 JavaScript engine.
