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))

Oldest comments (0)