title: React Native - pod install issue "cannot load such file.......node_modules/react-native/scripts/react_native_pods"
body: <p>when I have a react native project....and when I run <code>pod install</code> it gives me the following error</p>
  <pre><code>Invalid `Podfile` file: cannot load such file -- /myPath/node_modules/react-native/scripts/react_native_pods
  </code></pre>
  <p>Here is my podfile</p>
  <pre><code>require_relative '../node_modules/react-native/scripts/react_native_pods'
  require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
  
  platform :ios, '10.0'
  
  target 'xs' do
    config = use_native_modules!
  
    use_react_native!(:path =&gt; config[&quot;reactNativePath&quot;])
  
    target 'xsTests' do
      inherit! :complete
      # Pods for testing
    end
  
    # Enables Flipper.
    #
    # Note that if you have use_frameworks! enabled, Flipper will not work and
    # you should disable these next few lines.
    use_flipper!
    post_install do |installer|
      flipper_post_install(installer)
    end
  end
  
  target 'xs-tvOS' do
    # Pods for xs-tvOS
  
    target 'xs-tvOSTests' do
      inherit! :search_paths
      # Pods for testing
    end
  end
  </code></pre>
  <p>Ive checked and there is no file called <code>react_native_pods</code> in location <code>myPath/node_modules/react-native/scripts/</code>.
  Im wondering if its something to do with <code>npm install</code> is not generating correct files.....however I upgraded node to most recent version and then ran <code>npm install</code></p>