question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to create new project using npx command on 0.65.0

See original GitHub issue

Please 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. Screenshot 2021-08-18 at 12 56 15 PM

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.

  1. 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

1reaction
efefurkankarakayacommented, Aug 18, 2021

Same. I solved that problem with manually installing dependencies with --legacy-peer-deps param.

Can you please share the steps, how to resolve it.

Of course.

  1. $ npx react-native init MyProject
  2. (Get the error and let it break installation)
  3. $ cd MyProject
  4. $ npm install --legacy-peer-deps
  5. $ npx react-native start
  6. $ npx react-native run-android

and it’s done.

0reactions
efefurkankarakayacommented, Aug 18, 2021

Thank you @efefurkankarakaya now i’m able to create new project with the steps you have mentioned. Their is one more issue that my .xcworkspace is not generating automatically now in 0.65.0. I have to generate it manually.

You’re welcome.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to build React Native 0.65-rc4 from source #32011
Provide a detailed list of steps that reproduce the issue. Created empty RN project using command npx react-native init AwesomeProject.
Read more >
I can't install react using npx create-react-app? - Stack Overflow
I can't install react using npx create-react-app? ; try npm cache clean --force then run npm install -g create-react-app@latest. – Satish Patel.
Read more >
NPX Create React APP Not Working - YouTube
To create a new React App, we use npx command with create -react-app and then project name. It should create a new react...
Read more >
projen - npm
Use npx projen new PROJECT-TYPE --help to view a list of command line switches that allows you to specify most project options during...
Read more >
Build error after adding BabylonReactNative to default ...
Hi! I'm trying to add BabylonReactNative to a fresh ReactNative project. I've tried the following: npx react-native init Playground ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found