how to install node_modules/expressjs to specific directory


In general after installation of nodejs if we type npm install, it install all necessary modules-this is quite known to all..

if you want to install specifically express like that..we will command node with npm install -g express which installs express-this is also known.

But if at all we required to install node_modules/express js to our project directory means??

very simple..navigate to your directory in cmd prompt like D:/workspace/your_project and type npm install -l express like shown below..

21-07-2014 15-00-57


thats you can see a folder named node_modules in your directory..

21-07-2014 15-03-07

The concept here is global vs local

21-07-2014 15-04-16

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s