DEV Community

Aashutosh Poudel
Aashutosh Poudel

Posted on

2 1

Using pnpm instead of npm or yarn

My disk space was getting low and I knew I had to delete some of the node_modules from my projects. I was looking for a way where dependencies between projects could be easily shared without downloading again or copying the packages into the current project directory.
pnpm is exactly the tool designed to solve these issues. It creates hard links to different packages instead of storing entire packages. Just remove the old node_modules folder and run pnpm install inside your project and you're good to go.

References:

  1. https://pnpm.io/motivation
  2. https://www.infoq.com/news/2020/06/pnpm-javascript-package-manager/
  3. https://pnpm.io/cli/install

Top comments (0)

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay