Skip to content

Performance

Why is npm install slow in CI?

Quick answer

node_modules writes tens of thousands of small files, and network-attached CI disk handles that badly.

The detail that matters

Cache ~/.npm, use --prefer-offline, and run on a runner with local NVMe. Switching to pnpm helps more than any of them.

Your next build could be twice as fast, at half the price

Start free. Migrating away is the same one line, and we publish that diff too.