Skip to content

Using with specified version of RN doesn't work #315

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

Closed
ViktorVojtek opened this issue Dec 8, 2022 · 1 comment
Closed

Using with specified version of RN doesn't work #315

ViktorVojtek opened this issue Dec 8, 2022 · 1 comment

Comments

@ViktorVojtek
Copy link

Expected results

To install a proper version of RN

Observed results

No matter what version is specified in command "npx react-native init MyApp --template [email protected]" cli always trying to instal RN v. 0.70.6 and fails.

Logs

OS: MacOs Ventura 13.0

npx react-native init MyApp --template [email protected]

Need to install the following packages:
  [email protected]
Ok to proceed? (y) y

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: undefined@undefined
npm ERR! Found: [email protected]
npm ERR! node_modules/react-native
npm ERR!   peer react-native@">=0.64.0-rc.0 || 0.0.0-*" from @react-native-community/[email protected]
npm ERR!   node_modules/@react-native-community/cli
npm ERR!     @react-native-community/cli@"^5.0.1-alpha.1" from [email protected]
npm ERR!   react-native@"0.70.6" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! react-native@"0.70.6" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react
npm ERR!   peer react@"18.1.0" from [email protected]

Steps to reproduce

  1. In terminal execute:
npx react-native init MyApp --template [email protected]
@ViktorVojtek
Copy link
Author

Upgrade global module @react-native-community/cli resolve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant