I’m trying to add
expo-updates to an existing (non-Expo) React Native project.
As per the documentation, I first run
to add the base
expo module and make the required changes to the project setup. This runs successfully. I then try to run
yarn add -E expo-updates
but this fails with
Googling the error, the solution seemed to be to increase the max memory of Node, which I tried:
and verified using
node -e 'console.log(v8.getHeapStatistics().heap_size_limit/(1024*1024))'
This is a lot more than the default setting, and should be enough to install a node package.
I’ve also tried with multiple node versions,
14.15.4, 14.19.0, 16.13.2, 17.5.0 but none of them works.
I also had a colleague try, and he had the same issue. We can install other packages just fine.
Any pointers/help would be much appreciated.
Full stack trace: