DEV Community 👩‍💻👨‍💻

Pacharapol Withayasakpunt
Pacharapol Withayasakpunt

Posted on

Global up-to-date packages or local pinned dependencies?

What do you think is better, and when?

If it is global in your PC, how do you allow contributors? How do you manage global with local exceptions?

If it is local in your repo, how do you keep up with sizes (especially, multiple copies of node_modules with multiple copies of eslint)?

Now, I think about it, what about multiple version of the same package in global (e.g. Nuxt needs TypeScript ~3.8, but in general, you want to use @latest (^3.9))

Top comments (0)

All DEV content is created by the community!

Hey, if you're landing here for the first time, you should know that this website is a global community of folks who blog about their experiences to help folks like you out.

Sign up now if you're curious. It's free!