Command `pod install` failed.
└─ Cause: Invalid `Podfile` file: cannot load such file -- ./scripts/autolinking.
# from /Users/developer/Documents/Project1/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")
-------------------------------------------
sh: node: command not found
I've been trying to figure this out all day and still can't figure out what the issue is. I've got node
in my paths so it can find the command.
I figured out if I were to change the first require line to File.join('node_modules/expo/scripts/autolinking')
it manages to execute, however then it throws the same issue for a file within the node modules, which i can't go through and change all the node_modules manually.
Does anyone know why this is happening?