Using pnpm instead of npm or yarn
Aashutosh Poudel
Posted on May 8, 2022
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:
💖 💪 🙅 🚩
Aashutosh Poudel
Posted on May 8, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.