Question:

What is local installation of dependencies?

Answer:

By default, npm installs any dependency in the local mode. Here local mode refers to the package installation in node_modules directory lying in the folder where Node application is present. Locally deployed packages are accessible via require(). To install a Node project locally following is the syntax.

C:\Nodejs_WorkSpace>npm install express

Keywords:

© 2017 QuizBucket.org