We have a reasonably sized monorepo with turborepo.
We migrated from npm to pnpm and still see 0 reuses of modules:
Progress: resolved 2738, reused 0, downloaded 2697, added 2734
Are there any other steps we need to take? In our GitHub actions workflow we see almost all modules being reused from the cache.
pawlean
(Pauline P. Narvas)
4
Hey, Aaron! Nice to see you here again 
Could you check the following?
- Commit
pnpm-lock.yaml: Vercel needs this to cache dependencies.
- Verify build command: Make sure Vercel is running
pnpm, e.g. in vercel.json:
{ "buildCommand": "pnpm build" }
- Turborepo config: Double-check your
turbo.json is set up for Vercel.
- “Reused 0” isn’t always bad: That’s often referring to build cache, not dependency cache, so it doesn’t always mean dependencies weren’t cached.
You can also peek at the build logs in the Vercel dashboard to confirm pnpm is actually being used.
Let us know how you’re get on!
system
(system)
Closed
5
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.