PNPM As Your Package Manager

PNPM As Your Package Manager

Read 234 times

#npm

#node

#yarn

#pnpm

If you have been working with any node/javascript framework - be it React, Angular, Vue - there’s an issue if you use npm or yarn.

It’s something that happens in the background that you may not have noticed with every project you fire up - you redownload the packages in every instance.

What that means is that you end up having duplicates of the same packages in different folders on your machine.

I don’t know about you, but I’m not okay with that…

Why PNPM?

Instead of redownloading the packages again, pnpm creates a central store where the packages are kept.

When you start up a new project, it checks if any of the packages required are already present on your system. If they are, it creates a reference to that store and doesn’t redownload anything.


Conclusion

Because I cannot do PNPM justice. Let me direct you to their site where they will do a much better job than I can:

PNPM


Thank you for reading, let’s connect!

Thank you for visiting this little corner of mine. Let’s connect on Twitter, Polywork and LinkedIn

Back to articles