Reputation: 508
If I have node modules installed locally (in the same folder as my node app) will they override global installations of the same modules?
Upvotes: 5
Views: 4693
Reputation: 39649
Yes. See the documentation here on module resolution. And, just to be clear, "override" here simply means that the local module is the one that will be resolved to. The global module will be left untouched, and node.js apps in other directories will still be able to use the global module.
Upvotes: 8