General > NodeJs >> NodeJs Views : 2366
Rate This Article :

How to install Node Js on Windows

Introduction:

Node.js is a cross-platform environment and library for running JavaScript applications which is used to create networking and server-side applications.

Steps:

To install and setup an environment for Node.js, you need the following two software’s available on your computer:

  1. Text Editor (Notepad or Notepad++)
  2. Node.js Binary installable

Download Node.js:

You can download the latest version of Node.js installable archive file from https://nodejs.org/en/

NodeJsPage

After downloading the Node.js install it in your machine.

Node.js Console:

            The Node.js console module provides a simple debugging console similar to JavaScript console mechanism provided by web browsers.

There are three console methods that are used to write any node.js stream:

  1. console.log()
  2. console.error()
  3. console.warn()

Basic Commands used in Command prompt:

1.       CD(Change Directory): To change the directory. (cd path name – to generate directory and cd\ - is to clear the directory).

2.       node [file name].js: To debug or to execute the program.

3.       npm –v,--version: It is used to print node's version.

4.       npm –h,--help: It is used to print node command line options.

5.       npm -e, --eval: It evaluates the following argument as JavaScript. The modules which are predefined in the REPL can also be used in script.

6.       npm -p, --print: It is identical to -e but prints the result.

7.       npm  -c, --check: Syntax check the script without executing.

8.       npm -r, --require: It is used to preload the specified module at startup. It follows require()'s module resolution rules. Module may be either a path to a file, or a node module name.

9.       npm install [module name]: To install the required modules.

10.   Ctrl+C : Exit from debugging. 


About Author
Madhavi Seethi
Total Posts 3
-
Comment this article
Name*
Email Address* (Will not be shown on this website.)
Comments*
Enter Image Text*
   
View All Comments
sivasankari
Step by step Installation guide helped me a lot for me installation.
sreevani
good
  Privacy   Terms Of Use   Contact Us
© 2016 Developerin.Net. All rights reserved.
Trademarks and Article Images mentioned in this site may belongs to Microsoft and other respective trademark owners.
Articles, Tutorials and all other content offered here is for educational purpose only and its author copyrights.