Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.75.0] Failed to download template when init new app #46028

Closed
EzioLi01 opened this issue Aug 15, 2024 · 15 comments
Closed

[0.75.0] Failed to download template when init new app #46028

EzioLi01 opened this issue Aug 15, 2024 · 15 comments
Labels
Resolution: Fixed A PR that fixes this issue has been merged.

Comments

@EzioLi01
Copy link

Description

Create new application with init command, failed in download template step.

Steps to reproduce

  1. Install react-native
  2. Create new app with init command
  3. Get failure in download template step

React Native Version

0.75.0

Affected Platforms

Build - MacOS, Build - Windows, Build - Linux

Output of npx react-native info

System:
  OS: macOS 14.4.1
  CPU: (10) arm64 Apple M1 Pro
  Memory: 58.11 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 21.5.0
    path: /opt/homebrew/bin/node
  Yarn:
    version: 1.22.21
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.2.4
    path: /opt/homebrew/bin/npm
  Watchman:
    version: 2023.12.04.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.14.3
    path: /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.0
      - iOS 17.0
      - macOS 14.0
      - tvOS 17.0
      - watchOS 10.0
  Android SDK: Not Found
IDEs:
  Android Studio: 2022.3 AI-223.8836.35.2231.11005911
  Xcode:
    version: 15.0.1/15A507
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 11.0.21
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.72.4
    wanted: 0.72.4
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: Not found

Stacktrace or Logs

✖ 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.

Reproducer

https://github.com/react-native-community/reproducer-react-native

Screenshots and Videos

Screenshot 2024-08-15 at 10 57 53
@react-native-bot react-native-bot added Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Aug 15, 2024
@react-native-bot
Copy link
Collaborator

⚠️ Missing Reproducible Example
ℹ️ We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.

@EzioLi01 EzioLi01 changed the title Failed to download template when init new app [0.75.0] Failed to download template when init new app Aug 15, 2024
@react-native-bot
Copy link
Collaborator

⚠️ Missing Reproducible Example
ℹ️ We could not detect a reproducible example in your issue report. Please provide either:

@andrewhamili
Copy link

andrewhamili commented Aug 15, 2024

image

Also experiencing this issue on my side. Tried on Windows, macos and ubuntu.

@KingAmo
Copy link

KingAmo commented Aug 15, 2024

see: reactwg/react-native-releases#317 (comment)

@JakeStoeffler
Copy link

JakeStoeffler commented Aug 15, 2024

Is there a temporary workaround? This doesn't seem specific to 0.75. I also tried npx react-native@0.74.4 init MyNewProject with no luck. Got the same error and empty project directory.

edit: npx react-native init MyNewProject --version 0.74.4 works!

@juhyunk0820
Copy link

node.js와 npm 을 재설치하고, 모듈과 package-lock.json 등등 수정을 했는데도 같은 에러가 발생해요. 해결방안을 알 수 있는 가이드 라인이 있나요?

@Bileeta123
Copy link

Is there a temporary workaround? This doesn't seem specific to 0.75. I also tried npx react-native@0.74.4 init MyNewProject with no luck. Got the same error and empty project directory.

edit: npx react-native init MyNewProject --version 0.74.4 works!

Yes this works. (M1 Macbook pro)

@tobua
Copy link
Contributor

tobua commented Aug 15, 2024

In version 0.75.0 published to npm, there is no /template folder, which I assume is where the template is supposed to be. It seems they are aware of this issue, and it should be fixed in version 0.75.1.

@tobua
Copy link
Contributor

tobua commented Aug 15, 2024

Update: Just read the release notes 😂 the template location was moved, try this:

bunx @react-native-community/cli@latest init AwesomeProject --template @react-native-community/template

@andrewhamili
Copy link

Update: Just read the release notes 😂 the template location was moved, try this:

bunx @react-native-community/cli@latest init AwesomeProject --template @react-native-community/template

Worked for me. Thanks

@toanle06
Copy link

Is there a temporary workaround? This doesn't seem specific to 0.75. I also tried npx react-native@0.74.4 init MyNewProject with no luck. Got the same error and empty project directory.

edit: npx react-native init MyNewProject --version 0.74.4 works!

you saved my day!

@cortinico
Copy link
Contributor

In version 0.75.0 published to npm, there is no /template folder, which I assume is where the template is supposed to be. It seems they are aware of this issue, and it should be fixed in version 0.75.1.

Yup as mentioned, we're working on it and we'll publish a hot fix in the coming hours

@cortinico
Copy link
Contributor

This has now been fixed with version 0.75.1:
https://github.com/facebook/react-native/releases/tag/v0.75.1

@cortinico cortinico added Resolution: Fixed A PR that fixes this issue has been merged. and removed Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Aug 15, 2024
@TahaKhalidM
Copy link

same issue with this version as well

@Pajimo
Copy link

Pajimo commented Aug 21, 2024

Update: Just read the release notes 😂 the template location was moved, try this:

bunx @react-native-community/cli@latest init AwesomeProject --template @react-native-community/template

This worked for me, thank you. Looks like I will be using 'bunx' from now, already so used to npm or yarn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Fixed A PR that fixes this issue has been merged.
Projects
None yet
Development

No branches or pull requests