Skip to main content

Command Palette

Search for a command to run...

Why You Should Consider PNPM As Your Package Manager

Do you care about the space on your disk?

Published
1 min read
Why You Should Consider PNPM As Your Package Manager
J

I am passionate about creation, be it code or written. I believe that knowledge should be shared and that if we all gave a little bit of our time to helping the next person the world would be a better place.

"Knowledge not shared is knowledge wasted"

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