Unable to create new project using npx command on 0.65.0
See original GitHub issuePlease provide all the information requested. Issues that do not follow this format are likely to stall.
Description
Im creating fresh project using command npx react-native init MyTestApp
after 0.65.0 stable release.
But i’m getting npm install error. See the below image.
But when i’m running npx react-native init AwesomeProject --version 0.64.2
, i’m not getting any error and the project created successfully.
React Native version:
System: OS: macOS 11.5.2 CPU: (8) arm64 Apple M1 Memory: 141.88 MB / 8.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 16.4.0 - /opt/homebrew/bin/node Yarn: Not Found npm: 7.18.1 - /opt/homebrew/bin/npm Watchman: 2021.06.07.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.10.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4 Android SDK: API Levels: 29, 30 Build Tools: 28.0.3, 29.0.2, 30.0.3 System Images: android-25 | Google APIs ARM 64 v8a, android-29 | Google APIs Intel x86 Atom, android-30 | Google APIs Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 2020.3 AI-203.7717.56.2031.7583922 Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild Languages: Java: 1.8.0_302 - /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
Provide a detailed list of steps that reproduce the issue.
- Run
npx react-native init MyTestApp
on your terminal.
Expected Results
Fresh new project should be successfully created with latest verison of react-native(0.65.0)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6
Top GitHub Comments
Of course.
$ npx react-native init MyProject
$ cd MyProject
$ npm install --legacy-peer-deps
$ npx react-native start
$ npx react-native run-android
and it’s done.
You’re welcome.