Force npm instead of yarn during prebuild phase of eas build?
Is there a way to force the prebuild stage of eas build to use the "--npm" option to apply this workaround?
Without "--npm":

With "--npm":

I realize I run expo prebuild in these examples but I think it illustrates the issue cleanly.
My actual issue is this (I want to be able to pass --npm here, I guess?):
eas build --profile my-profile -p android --local --clear-cache

I fully admit that I may be missing something here so if I am, please point me in the direction of it!
Disregard!
You are able to do this via eas.json.
For example:
{
"build": {
"base-local": {
"node": "12.22.5",
"developmentClient": true,
"prebuildCommand": "prebuild --npm",
...
}
}
}
Closing this issue.
isn't there a way for eas build -p android --profile preview to run npm i --force? or npm config set legacy-peer-deps true or npm install --save --legacy-peer-deps?
@EmePin Did you find a way with customizing the npm command? Am stuck and that is exactly what I need to do
@EmePin @osamwelian3 From https://stackoverflow.com/questions/73933728/how-to-tell-expo-to-install-npm-dependencies-with-legacy-peerdeps-option#answer-74268002
- Create a .npmrc file in the project root and add
force=trueorlegacy-peer-deps=true - In package.json, add
"eas-build-pre-install": "npm config set legacy-peer-deps true"toscripts
@EmePin @osamwelian3 From stackoverflow.com/questions/73933728/how-to-tell-expo-to-install-npm-dependencies-with-legacy-peerdeps-option#answer-74268002
- Create a .npmrc file in the project root and add
force=trueorlegacy-peer-deps=true- In package.json, add
"eas-build-pre-install": "npm config set legacy-peer-deps true"toscripts
Thanks, it worked here.