DEV Community


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

patarapolw profile image Pacharapol Withayasakpunt ・1 min read

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

Discussion (0)

Editor guide