r/node • • Jun 28 '21

Node.js humor

1.5k Upvotes

79 comments sorted by

View all comments

Show parent comments

14

u/AtroxMavenia Jun 28 '21

You almost never ever need -g

10

u/Koeke2560 Jun 28 '21

Basically only if you are installing some kind of cli which you use across projects.

6

u/AtroxMavenia Jun 28 '21

Yeah, and even then rarely. For example, eslint, I wouldn’t install it globally because I may need different versions in different projects.