Skip to content
Discussion options

You must be logged in to vote

🚨 [EAS Build Tip for pnpm users]
I ran into a frustrating issue where EAS Build was trying to run yarn install even though my project uses pnpm, causing the build to fail.

📌 Root cause:
I had accidentally git-ignored pnpm-lock.yaml, so EAS couldn’t detect that my project uses pnpm. It defaulted to Yarn and failed with this error:

This project is configured to use pnpm because package.json has a "packageManager" field
yarn install exited with non-zero code: 1

✅ Fix:
Make sure pnpm-lock.yaml is committed to your repo. EAS Build uses it to correctly choose the package manager.
Hope this saves someone else hours of debugging!

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by M-Farih
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants