1.

What Is Global Installation Of Dependencies?

Answer»

Globally INSTALLED packages/dependencies are stored in <user-directory>/npm directory. Such dependencies can be used in CLI (Command Line Interface) FUNCTION of any node.js but can not be imported using require() in Node application directly. To INSTALL a Node project globally USE -g flag.
C:Nodejs_WorkSpace>npm install express -g

 

Globally installed packages/dependencies are stored in <user-directory>/npm directory. Such dependencies can be used in CLI (Command Line Interface) function of any node.js but can not be imported using require() in Node application directly. To install a Node project globally use -g flag.
C:Nodejs_WorkSpace>npm install express -g

 



Discussion

No Comment Found