PNPM is said to be most efficient package manager. I'm also thinking to switch from slower npm to faster PNPM.
Before switching I would like to know about pros and cons of PNPM.
Let me know in comments!
PNPM is said to be most efficient package manager. I'm also thinking to switch from slower npm to faster PNPM.
Before switching I would like to know about pros and cons of PNPM.
Let me know in comments!
For further actions, you may consider blocking this person and/or reporting abuse
Ogasawara Kakeru -
Arham Rumi -
saifalikhan9 -
zhuyue -
Top comments (13)
After using npm, Yarn, and pnpm, I am happy to stick with pnpm. Here's what I like about it.
I keep pnpm as the only globally installed package on my dev environment, and everything is listed in each project. This doesn't cause disk space bloat because of how pnpm works. I've been very happy with the switch, and will only use npm or yarn if I have to. To be honest I haven't come across any cons that I can think of, other than I wish more people would adopt it.
Pick a little side project and give it a shot. After the initial adjustment to the syntax changes with commands I think you will be impressed.
Thanks for your response! I'll definitely use PNPM on a side project first and after reading your response I'm sure speed of PNPM will impress me!
Hey just a doubt regarding PNPM ?
We at our company uses NPM on Angular ( Pretty Big Project ). That takes like 30 MINUTES for production build.
Is it possible to reduce build time when using PNPM , just wondereing.
It should help speed your builds up, but it's not going to be a magic bullet. It will help with downloading and resolving dependencies, but any compiling, code transforms, test runs, etc. probably won't change much, if at all. So your gains won't be drastic with pnpm alone.
It sounds like what you need is a tool like Nx or Turborepo. Both tools allow you to define builds in steps and cache steps as you go, and I'm pretty sure both allow for cached steps to be shared between dev and ci environments also. (I know turborepo does) These tools are designed for monorepo's though so if you have a monolith going, you might need to tease some modules into separate packages to see a real benefit. I've been hearing a LOT about both on the podcast circuit but haven't tried either on my own yet.
Hey Nik , thanks !
Tried it on several of my private projects. Unfortunately it worked only in 25% of all cases. Seems a hassle to get it to work in the other ones... so, I'll stick to yarn. Maybe the story would be different when starting new projects (which I'll certainly try to start with pnpm)
When pnpm doesn't work, you can always set the node-linker=hoisted setting and pnpm will create a regular hoisted node_modules without using symlinks. It will work with all projects that work with Yarn.
It's faaaast!!!
Yup! I see it's phaaaast!!!
PNPN do do do doo PNPN do doo doo do 🎶
That's some cool beats!
You know it! Although I may be to old for some to get the reference
It's pretty good but some older packages won't work. It may be placebo but I feel it works faster too.