'Missing scripts from expo/package.json and react-native/package.json

Getting this error :

[!] Invalid `Podfile` file: cannot load such file -- /Users/austin/Desktop/buzzEx/node_modules/expo/scripts/autolinking.

 #  from /Users/austin/Desktop/buzzEx/ios/Podfile:1
 #  -------------------------------------------
 >  require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
 #  require File.join(File.dirname(`node --print "require.resolve('react-native/package.json')"`), "scripts/react_native_pods")

when trying to run pod install --repo-update

At the last step of setting up Firebase with my react-native project.

I have tried uninstalling and reinstalling cocoapods, searching for the scripts on Google, running npm i from the root folder, and I'm still stumped on what to do.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source