title: "pod install" error in ReactNative m1 mac, Babel 5 is no longer being maintained. Upgrade to Babel 6
body: <p>I'm running my project on node version 17.8.0 and npm with 6.14.10. As I try to install the pod it fails with the below command but it's working fine in Android:</p>
  <p><a href="https://i.stack.imgur.com/11qXH.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/11qXH.jpg" alt="enter image description here" /></a></p>
  <p>As the above error log is requesting to upgrade the Babel-Core version to 6 but I've upgraded it to version 7 but still, I'm getting the same error. There are more other versions to upgrade/downgrade and issues to be fixed. I'm confused, about how to resolve these issues. Here are my dependencies used in the project:</p>
  <pre><code>&quot;dependencies&quot;: {
      &quot;@dudigital/react-native-zoomable-view&quot;: &quot;^1.0.12&quot;,
      &quot;@react-native-community/netinfo&quot;: &quot;^4.4.0&quot;,
      &quot;axios&quot;: &quot;^0.26.1&quot;,
      &quot;bluebird&quot;: &quot;^3.5.3&quot;,
      &quot;buffer&quot;: &quot;^5.2.1&quot;,
      &quot;connect&quot;: &quot;^3.7.0&quot;,
      &quot;d3-scale&quot;: &quot;^2.2.2&quot;,
      &quot;hoist-non-react-statics&quot;: &quot;^3.2.1&quot;,
      &quot;jetifier&quot;: &quot;^1.6.8&quot;,
      &quot;link&quot;: &quot;^0.1.5&quot;,
      &quot;lodash&quot;: &quot;^4.17.11&quot;,
      &quot;moment&quot;: &quot;^2.24.0&quot;,
      &quot;npm&quot;: &quot;^6.14.10&quot;,
      &quot;prop-types&quot;: &quot;^15.6.2&quot;,
      &quot;qs&quot;: &quot;^6.6.0&quot;,
      &quot;react&quot;: &quot;16.6.3&quot;,
      &quot;react-native&quot;: &quot;^0.68.0&quot;,
      &quot;react-native-communications&quot;: &quot;^2.2.1&quot;,
      &quot;react-native-document-picker&quot;: &quot;^2.2.0&quot;,
      &quot;react-native-extended-stylesheet&quot;: &quot;^0.11.1&quot;,
      &quot;react-native-firebase&quot;: &quot;5.1.0&quot;,
      &quot;react-native-floating-action&quot;: &quot;^1.14.2&quot;,
      &quot;react-native-geolocation-service&quot;: &quot;^3.0.0&quot;,
      &quot;react-native-gesture-handler&quot;: &quot;^1.6.1&quot;,
      &quot;react-native-gifted-chat&quot;: &quot;^0.7.2&quot;,
      &quot;react-native-image-picker&quot;: &quot;^4.7.3&quot;,
      &quot;react-native-image-resizer&quot;: &quot;^1.0.0&quot;,
      &quot;react-native-linear-gradient&quot;: &quot;^2.5.3&quot;,
      &quot;react-native-localization&quot;: &quot;^2.0.3&quot;,
      &quot;react-native-map-link&quot;: &quot;^2.1.6&quot;,
      &quot;react-native-material-ripple&quot;: &quot;^0.8.0&quot;,
      &quot;react-native-message-bar&quot;: &quot;^2.0.10&quot;,
      &quot;react-native-mime-types&quot;: &quot;^2.2.1&quot;,
      &quot;react-native-open-settings&quot;: &quot;^1.0.1&quot;,
      &quot;react-native-orientation&quot;: &quot;^3.1.3&quot;,
      &quot;react-native-photo-view&quot;: &quot;github:alwx/react-native-photo-view#e28f5416574cbfa07b2d4fa862c0048df56f7b02&quot;,
      &quot;react-native-reanimated&quot;: &quot;^1.8.0&quot;,
      &quot;react-native-screens&quot;: &quot;^2.7.0&quot;,
      &quot;react-native-search-filter&quot;: &quot;^0.1.4&quot;,
      &quot;react-native-super-grid&quot;: &quot;^3.0.1&quot;,
      &quot;react-native-svg&quot;: &quot;^8.0.10&quot;,
      &quot;react-native-svg-charts&quot;: &quot;^5.2.0&quot;,
      &quot;react-native-svg-icon&quot;: &quot;^0.8.1&quot;,
      &quot;react-native-ui-components&quot;: &quot;^0.5.0&quot;,
      &quot;react-native-video&quot;: &quot;^4.4.0&quot;,
      &quot;react-native-webview&quot;: &quot;^7.4.3&quot;,
      &quot;react-navigation&quot;: &quot;^3.0.9&quot;,
      &quot;react-redux&quot;: &quot;^6.0.0&quot;,
      &quot;react-websocket&quot;: &quot;^2.1.0&quot;,
      &quot;recompose&quot;: &quot;^0.30.0&quot;,
      &quot;redux&quot;: &quot;^4.0.1&quot;,
      &quot;redux-define&quot;: &quot;^1.1.1&quot;,
      &quot;redux-logger&quot;: &quot;^3.0.6&quot;,
      &quot;redux-persist&quot;: &quot;^5.10.0&quot;,
      &quot;redux-persist-error-handler&quot;: &quot;^0.1.1&quot;,
      &quot;redux-persist-filesystem-storage&quot;: &quot;^1.3.2&quot;,
      &quot;redux-thunk&quot;: &quot;^2.3.0&quot;,
      &quot;reselect&quot;: &quot;^4.0.0&quot;,
      &quot;rn-fetch-blob&quot;: &quot;^0.10.15&quot;,
      &quot;rn-viewpager&quot;: &quot;^1.2.9&quot;,
      &quot;sanitize-filename&quot;: &quot;^1.6.1&quot;,
      &quot;shallow-equal&quot;: &quot;^1.1.0&quot;,
      &quot;tcomb-form-native&quot;: &quot;^0.6.20&quot;,
      &quot;uuid&quot;: &quot;^3.3.2&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@babel/core&quot;: &quot;^7.17.9&quot;,
      &quot;@babel/eslint-parser&quot;: &quot;^7.17.0&quot;,
      &quot;babel-core&quot;: &quot;7.0.0-bridge.0&quot;,
      &quot;babel-jest&quot;: &quot;24.1.0&quot;,
      &quot;eslint&quot;: &quot;^4.19.1&quot;,
      &quot;jest&quot;: &quot;24.1.0&quot;,
      &quot;metro-react-native-babel-preset&quot;: &quot;0.59.0&quot;,
      &quot;react-test-renderer&quot;: &quot;16.6.3&quot;
    }
  </code></pre>
  <p>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'
  
  pod 'Firebase/Core'
  pod 'Firebase/Database', '~&gt; 5.15.0'
  pod 'Firebase/Storage', '~&gt; 5.15.0'
  pod 'Firebase/Messaging', '~&gt; 5.15.0'
  
  # pod &quot;Yoga&quot;, :path =&gt; &quot;../node_modules/react-native/ReactCommon/yoga&quot;
  # pod 'React-Core', :path =&gt; '../node_modules/react-native/'
  # pod 'DevSupport', :path =&gt; '../node_modules/react-native/'
  # pod 'React-Core', :path =&gt; '../node_modules/react-native/'
  # pod 'React', :path =&gt; '../node_modules/react-native', :subspecs =&gt; [
  # 'Core',
  # 'DevSupport',
  # 'RCTNetwork',
  # 'RCTWebSocket'
  # ]
  
  post_install do |installer|
      installer.pods_project.targets.each do |target|
          if target.name == &quot;React&quot;
              target.remove_from_project
          end
      end
  end
  
  target 'PMIS' do
  
    # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
    # use_frameworks!
  
    # Pods for PMIS
  
    # this is needed to avoid including multiple references to react.
  
    pod 'react-native-video', :path =&gt; '../node_modules/react-native-video'
  
    pod 'react-native-netinfo', :path =&gt; '../node_modules/@react-native-community/netinfo'
  
    pod 'react-native-webview', :path =&gt; '../node_modules/react-native-webview'
  
  end
  </code></pre>