Hello everyone, we will learn about global modules in this lesson. We will talk about what are they, how they work, and why we need them. Let’s start.

What are global modules

Global modules are node packages that are installed on your system rather than your project directory. They allow us to use the package as a tool anywhere on the local computer.

By saying global, we are talking about the scope of usage of these modules. Generally, modules are scoped inside the project directory only, it means you can’t use them outside the project. But as global modules are installed on the computer (mostly root location), they can easily be used anywhere in our system. This property of node modules can come very handy in certain situations. We will talk about those situations later in this article.

#Node.js #Node.js Lessons #Programming

Learn About Global Modules in Node
1.80 GEEK