Closed liresky closed 2 years ago
You can use --version 0.68.2. [ react-native init MyProject --version 0.68.2 ] It worked for me. Discuss here https://github.com/facebook/react-native/issues/34055
npm remove -g react-native react-native-cli
npx react-native init AwesomeProjectName
npm remove -g react-native react-native-cli
npx react-native init AwesomeProjectName
not ok.
You can use --version 0.68.2. [ react-native init MyProject --version 0.68.2 ] It worked for me. Discuss here #34055
yes 0.68.2 is ok. close this.
I had this issue with react-native@0.71.8 too.
Removed global react-native
and react-native-cli
packages.
Used --version in init (npx react-native init project --version 0.71.8)
Both did not work, then I looked at the RN documentation that says this.
npx react-native@X.XX.X init AwesomeProject --version X.XX.X
So I tried
npx react-native@0.71.8 init AwesomeProject --version 0.71.8
and it worked. Hope it helps someone.
Description
when I create a new project with 0.69.0.
There is the error. but 0.68.2 is ok. node version 16.15.1,14.19.3 all is failed.
Version
0.69.0
Output of
npx react-native info
info Fetching system and libraries information... System: OS: macOS 12.4 CPU: (4) x64 Intel(R) Core(TM) i5-7287U CPU @ 3.30GHz Memory: 485.27 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 16.15.1 - /usr/local/bin/node Yarn: 1.22.18 - ~/.yarn/bin/yarn npm: 8.13.1 - /usr/local/bin/npm Watchman: 2022.06.20.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.3 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5 Android SDK: Not Found IDEs: Android Studio: 2021.1 AI-211.7628.21.2111.8193401 Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild Languages: Java: 17.0.3 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: Not Found react-native: 0.69.0 => 0.69.0 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found
Steps to reproduce
npx react-native init smart
Snack, code example, screenshot, or link to a repository