Skip to content
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

Getting Error While initialization react native app in ubuntu #2378

Open
Harsh3341 opened this issue May 6, 2024 · 12 comments
Open

Getting Error While initialization react native app in ubuntu #2378

Harsh3341 opened this issue May 6, 2024 · 12 comments
Labels
question Further information is requested

Comments

@Harsh3341
Copy link

Ask your Question

While I'm initializing the react native app I'm receiving the following error:
image

I have checked I have yarn version 1.22.19 on my machine

What could be a possible solution for it?

@Harsh3341 Harsh3341 added the question Further information is requested label May 6, 2024
@szymonrybczak
Copy link
Collaborator

@Harsh3341 what's the output of yarn --version?

@Harsh3341
Copy link
Author

@Harsh3341 what's the output of yarn --version?

1.22.19

@Harsh3341
Copy link
Author

Now yarn issue is sorted but still I'm receiving
image

@km-saifullah
Copy link

Have you solved your problem @Harsh3341
I am also facing the same problem Ubuntu 22.04

@Harsh3341
Copy link
Author

Have you solved your problem @Harsh3341 I am also facing the same problem Ubuntu 22.04

not yet

@km-saifullah
Copy link

@Harsh3341 If you solve this just mention here how you solve that okay Brother!

@Harsh3341
Copy link
Author

@szymonrybczak is there any solution?

@km-saifullah
Copy link

@Harsh3341 I have solved my problem by downgrading the version of React-native. Try to use the command below

npx react-native@0.70 init AwesomeProject --version 0.70

@Harsh3341
Copy link
Author

@Harsh3341 I have solved my problem by downgrading the version of React-native. Try to use the command below

npx react-native@0.70 init AwesomeProject --version 0.70

Thnx @km-saifullah it works, but it need to know why the latest version is causing such issue

@km-saifullah
Copy link

@Harsh3341 Welcome. Yes, I also search about this issue. But still did not get anything valuable from the internet.

@szymonrybczak
Copy link
Collaborator

hey, you shouldn't use 0.70.0 as a version becuase it's outdated and is not longer supported. Please run init command with --verbose option and reply with your error.

@Harsh3341
Copy link
Author

@szymonrybczak using npx react-native@latest init --verbose is working fine, just getting the following error now

cannot parse yarn version

rest everything is working correctly, I have also run the code and the template app is working fine.

but running the command npx react-native@latest init without --verbose is causing the error attached in the starting image, why is It so?

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

No branches or pull requests

3 participants