Can someone please guide me, how to setup the NodeJs application from scratch?
1 Replies
Installation of NodeJS and NPM is straightforward using the installer package available at NodeJS official web site.
Download the installer from NodeJS WebSite.
Run the installer.
Follow the installer steps, agree the license agreement and click the next button.
Restart your system/machine.
Now, test NodeJS by printing its version using the following command in
Command Prompt:
> node -v
and test npm by printing its version using command
npm -v
Simple way to test nodeJS work in your system is to create a javascript file which print a message.
Lets create test.js file
/*test.js file*/
console.log("Node is working");
Run the test.js file using Node command > node test.js in command prompt.
You are done with installation.