Home > Back-end >  Will `npm install -g lodash` add lodash to my package.json?
Will `npm install -g lodash` add lodash to my package.json?

Time:05-13

If a package is installed as a global node package by npm, will it be added to my project's local package.json?

CodePudding user response:

No, this will add lodash to the global package.json file, not the current project one.

  • Related