Skip to content

Getting Error While initialization react native app in ubuntu #2378

Closed

Description

@Harsh3341

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?

Activity

  1. added
    question
    on May 6, 2024
  2. szymonrybczak commented on May 6, 2024

    @szymonrybczak
    Collaborator

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

  3. Harsh3341 commented on May 7, 2024

    @Harsh3341
    Author

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

    1.22.19

  4. Harsh3341 commented on May 7, 2024

    @Harsh3341
    Author

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

  5. km-saifullah commented on May 7, 2024

    @km-saifullah

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

  6. Harsh3341 commented on May 7, 2024

    @Harsh3341
    Author

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

    not yet

  7. km-saifullah commented on May 7, 2024

    @km-saifullah

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

  8. Harsh3341 commented on May 10, 2024

    @Harsh3341
    Author

    @szymonrybczak is there any solution?

  9. km-saifullah commented on May 10, 2024

    @km-saifullah

    @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

  10. Harsh3341 commented on May 11, 2024

    @Harsh3341
    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

  11. km-saifullah commented on May 11, 2024

    @km-saifullah

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

  12. szymonrybczak commented on May 12, 2024

    @szymonrybczak
    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.

  13. Harsh3341 commented on May 13, 2024

    @Harsh3341
    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?

  14. szymonrybczak commented on Jun 24, 2024

    @szymonrybczak
    Collaborator

    hey @Harsh3341!

    just getting the following error now

    cannot parse yarn version

    If issue is still presented could you please try logging error under this statement?

    } catch (error) {

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

    Error thrown during project creation were catched by one catch statement related to Cocoapods installation failure 😅 It'll fixed once #2394 lands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions