You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
EAS Build fails in PREPARE_PROJECT on pnpm monorepos with devEngines.packageManager (regression in 27.1.0) #4779
Since eas-cli 27.1.0, EAS Build fails in the PREPARE_PROJECT phase for a pnpm monorepo when NPM_TOKEN is set. The same commit built successfully with eas-cli 26.0.0 one day earlier.
Normalizing project source permissions
We detected that you set the NPM_TOKEN environment variable
npm config get userconfig exited with non-zero code: 1
Cause
#4729 changed setUpNpmrcAsync to always run npm config get userconfig with cwd: findPackagerRootDir(workingDirectory). The step runs even when the project has its own .npmrc and when NPM_CONFIG_USERCONFIG is set.
The root package.json of our monorepo has this field:
Correction: a pin of eas-cli does not work around this issue. A build with npx eas-cli@26.0.0 failed with the same error, because the worker runs its own build-tools version. Our workaround is to set devEngines.packageManager.onFail to "warn" in the CI checkout before eas build. The uncommitted change goes into the uploaded archive.
Activity
banie-solink commentedon Oct 28, 2026
Correction: a pin of eas-cli does not work around this issue. A build with
npx eas-cli@26.0.0failed with the same error, because the worker runs its own build-tools version. Our workaround is to setdevEngines.packageManager.onFailto"warn"in the CI checkout beforeeas build. The uncommitted change goes into the uploaded archive.