I'm trying to get React Native Expo running with Pnpm, but getting this issue 
With Npm or Yarn no issues.
That was bugging me too for couple a days, you have to create a .npmrc file and add this line;
node-linker=hoisted
And if you are asking why? Here is your answer;
By default, pnpm manages dependencies using hard links and does not flatten the dependency structure. This is incompatible with expo project structure.
Using the node-linker=hoisted setting in the .npmrc file tells pnpm to manage dependencies in a more traditional structure, similar to how other tools like npm or yarn do it.
After digging for a while, I found a solution for this problem here which were posted not so long ago. This doesn't require overriding .npmrc which ignore some of the great features of pnpm.
pnpm and expo without node-linker=hoisted
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With