Acro CommerceAcro Commerce
Tech Update: PNPM | The tech we use | Acro Media
Shawn McCabe | CTO | Acro Media
By Shawn McCabe

CTO


Posted in

July 12, 2023

All Articles

Tech Update: PNPM | Article

Tech Update: PNPM

A series explaining the tech behind our decoupled commerce accelerator, Gesso.

Recently, Shawn McCabe posted an internal blog letting our teams know that we’ve switched from yarn to pnpm on all our projects. 
But why? Let’s dig in and find out.

What are the benefits of pnpm?

According to Shawn McCabe, we chose PNPM because it works great with Turborepo and is much faster than yarn or npm. pnpm also has some other cool features that he explains below.

Caching

PNPM uses a global cache, so it shares node_modules between all projects on the computer. This caching can make installs very quick if many, or all, of the required packages exist in the store. While this is nice for local development, where it really helps is with speeding up CI installations.

Caching | Tech Update: PNPM | Acro Media

You can cache this store across all CI jobs by giving it a global key, which will mean most, if not all, of your packages will already be available for a quick install, but, if needed, missing packages will be installed.

In testing, this proved as fast as caching the entire node_modules folder and is much more versatile, as the node_modules needs to match to an exact lockfile.

Note: We had some issues with the Cypress binary not always being downloaded correctly for multiple different versions of Cypress used in a single monorepo. You can force an install, but the recommended solution is to keep your Cypress versions in sync, which you probably want to do anyway. A helpful tool to do that is: GitHub - JamieMason/syncpack: Consistent dependency versions in large JavaScript Monorepos.

References

Merge Conflicts

PNPM understands git merge conflicts within the lockfile and will resolve them with a simple pnpm install. While theoretically, you should always manually review, I have never had it make the incorrect choice as it cross-references with the package.json.

References

Ready to talk about the future of web development?

Want to know more about the world-class development tools we use at Acro Commerce? Fill in the form below, and one of our subject matter experts will reach out.

June 29, 2026

State of composable commerce for B2B 2026 | Acro Commerce

Composable rewards discipline and punishes shortcuts. What delivered ROI across real mid-market B2B builds in 2026, what backfired, and what comes next.
June 18, 2026

Acumatica spotlight: agent-ready APIs | Acro Commerce

A clean API layer over Acumatica lets AI agents and dealers move at machine speed without overrunning entitlements. Catalogue, pricing and quoting exposed.
June 17, 2026

Acumatica spotlight: AI-ready data | Acro Commerce

The ERP already holds the truth. Reshaping Acumatica product attributes and rolling out schema turns an invisible catalogue into an AI-cited source.