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
Cannot init RN project #36636
Comments
I'm sorry but this is a compromise we'll have to do. As a workaround you can use JSC which ships with smaller artifacts and will be faster to download. |
A compromise is unnecassry as there exist quite a few solutions:
Not being able to initialize a React Native project easily is a bad experience |
We're hosted on Sonatype which has quite strong CDNs as they distribute Maven artifacts all over the place for all the android projects.. You're free to redistribute the artifact or use a proxy as you see fit.
That's possible, we do have a guide here for Android: https://reactnative.dev/contributing/how-to-build-from-source
You can manually download artifacts using this web UI or any command line tools:
Yup that's doable, We'll be happy to receive a website PR here http://github.com/facebook/react-native-website |
Thanks for the information, appreciate that. I'll try to get that PR in for |
Description
React Native init takes hours and then fails.
After using
npx react-native@latest init --verbose TutorialProject
I found out that it's trying to download 460MB for a hermes-engine package from Maven, (https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/0.71.4/react-native-artifacts-0.71.4-hermes-ios-debug.tar.gz). The problem is, download from Maven has a speed of only 40KB/s (my connection speed is 100Mb/s). So it takes 3-4 hours to download 460MB with that speed and curl fails during it.React Native Version
0.71.4
Output of
npx react-native info
System:
OS: macOS 13.2.1
CPU: (10) arm64 Apple M1 Pro
Memory: 4.94 GB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.16.0 - /usr/local/bin/node
Yarn: 1.22.19 - ~/.npm-packages/bin/yarn
npm: 8.12.1 - /opt/homebrew/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.12.0 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2022.1 AI-221.6008.13.2211.9514443
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: 17.0.5 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: Not Found
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
npx react-native@latest init --verbose TutorialProject
Snack, code example, screenshot, or link to a repository
npx react-native@latest init --verbose TutorialProject
The text was updated successfully, but these errors were encountered: