skip to Main Content

I am creating a react native project and got this error.


Downloading template
error Installing pods failed. This doesn't affect project initialization and you can safely proceed. 
However, you will need to install pods manually when running iOS, follow additional steps in "Run instructions for iOS" section.

info 💡 To enable automatic CocoaPods installation when building for iOS you can create react-native.config.js with automaticPodsInstallation field. 
For more details, see https://github.com/react-native-community/cli/blob/main/docs/projects.md#projectiosautomaticpodsinstallation
            

  
  Run instructions for Android:
    • Have an Android emulator running (quickest way to get started), or a device connected.
    • cd "/Users/khuongtai/Downloads/AwesomeProject" && npx react-native run-android
  
  Run instructions for iOS:
    • cd "/Users/khuongtai/Downloads/AwesomeProject/ios"
    
    • Install Cocoapods
      • bundle install # you need to run this only once in your project.
      • bundle exec pod install
      • cd ..
    
    • npx react-native run-ios
    - or -
    • Open AwesomeProject/ios/AwesomeProject.xcodeproj in Xcode or run "xed -b ios"
    • Hit the Run button
    
  Run instructions for macOS:
    • See https://aka.ms/ReactNativeGuideMacOS for the latest up-to-date instructions.

I checked the folder and it was empty. I really don’t know how I tried with older versions and it still happens.

So is there any way to fix it?

2

Answers


  1. It seems there is a temporary issue specific to 0.75.0. Using a previous version worked for me: npx react-native init MyNewProject --version 0.74.4

    Login or Signup to reply.
  2. The template is downloading if you are using –pm npm at the end.

    I used this command and it worked:

    npx @react-native-community/cli@latest init YourProjectName –pm npm

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search