What is global installation of dependencies?

Technology CommunityCategory: Node.jsWhat is global installation of dependencies?
VietMX Staff asked 3 years ago

Globally installed packages/dependencies are stored in /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.