Hacker News new | ask | show | jobs
by chrisweekly 2060 days ago
Sorry if this makes it harder but I honestly recommend reading up on pnpm (https://pnpm.js.org/) before committing to npm7. Npm7 auto-installs peer dependencies(!) and pnpm has some remarkable advantages over npm or yarn.
2 comments

Pnpm is indeed better than npm but I found it’s symlinking approach less compatible than yarn v2, (nextJS for example didn’t support pnpm until very recently) while also having less deterministic module resolution, creating version compatibility problems that disappeared with yarn v2.
I had already been meaning to look at it but had written it off because I wanted what yarn 2 was selling... but definitely gonna give it another look.