npm install error after upgrading to Expo 49

After upgrading to Expo 49 from 48, when running npm install to reinstall node modules getting an error relating to webpack

npm ERR! Could not resolve dependency:
npm ERR! peer expo@“^48.0.17” from @expo/webpack-config@18.1.1
npm ERR! node_modules/@expo/webpack-config
npm ERR! dev @expo/webpack-config@“^18.0.1” from the root project

I’m facing the same issue. I tried npm audit fix --force and it downgraded expo to SDK 44! Did you find a way to resolve this please?

create .npmrc file on root and add below line:


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.