How To Install ExpressJs In Windows

How To Install ExpressJs In Windows

If you want to know that how to install ExpressJs in windows than this tutorial is for you.  ExpressJs is one of the powerful NodeJs Framework worked on MVC structure. This tutorial we will see that how can we install ExpressJs in windows. Please read this tutorial at the end and follow the given instruction.

Installation

This is a Node.js module available through the npm registry.

Before installing, download and install Node.js. Node.js 0.10 or higher is required.

Installation is done using the npm install command:

$ npm install express
Installing ExpressJs In Window

Step 1:

Get started with express is to utilize the executable express (1) to generate an application as shown below:

Install the executable expressjs:

$ npm install -g express-generator@4
Installing ExpressJs In Window Step1

Step 2:

Create a folder using command prompt, where you want to create in your system:

$ express MyFirstExpressProject
Installing ExpressJs In Window Step 2

Now go to the folder using this command:

$ cd MyFirstExpressProject
Installing ExpressJs In Window Step 2

Step 3:

Now install dependencies:

$ npm install
Installing ExpressJs In Window Step 3

Step 4:

Than start the server using this command:

$ npm start
Installing ExpressJs In Window Step 4

After starting the server go to the browser and paste following code:

http://localhost:3000
Installing ExpressJs In Window

I hope you like this post; If you like this post than comment and share this post and if you have any query related this than free to ask here…

About Author

Hey, this is Nilesh Sharma and I belong to the Pink City (Jaipur). My job as a software developer has made me a patient man and negotiation my skills! My job also keeps me on my toes, as i always trying to learn new skills to keep pace with the changing technology landscape.

Sign up for weekly update

Milkshake is almost ready. If you're interested in testing it out, then sign up below to get exclusive access.