Skip to content

Unable to Create a New React App Using npx create-react-app #13776

Closed
@itsRkator

Description

@itsRkator

Description

I've been facing issues when creating a new React app using the npx create-react-app command for the past 1 1.5 months. Despite trying multiple solutions, the problem persists, making it impossible to set up a new React project.

Steps to Reproduce

  1. Run the command: npx create-react-app my-app.
  2. Attempted the following flags to bypass errors:
    • --force
    • --legacy-peer-deps
  3. Tried on different systems and environments:
    • Operating Systems: Windows 10/11, macOS
    • Networks: Airtel and BSNL ISPs
  4. Tested on various Node.js versions (all managed with NVM):
    • 16.x (LTS)
    • 18.x (LTS)
    • 20.x (LTS)
    • 22.x (LTS)

Expected Behavior

After running the npx create-react-app command, a new React app should be successfully created.

Actual Behavior

The command fails to complete successfully. I've attached screenshots of the errors encountered below for you to look over.

Attempts to Fix

  • Used --force and --legacy-peer-deps flags.
  • Tried different versions of Node.js.
  • Tested on different operating systems and networks.

Environment

  • OS: Windows 10/11, macOS
  • Node.js: 16, 18, 20, and 22 (LTS versions)
  • NPM: Latest version (installed with Node.js)
  • React: The npx create-react-app version is the default fetched by NPM.

Attachments

(Screenshots of the error messages)

Screenshot 2024-12-30 at 4 37 35 PM Screenshot 2024-12-30 at 4 39 03 PM Screenshot 2024-12-30 at 4 41 21 PM Screenshot 2024-12-30 at 4 44 08 PM Screenshot 2024-12-30 at 4 44 42 PM Screenshot 2024-12-30 at 4 45 54 PM Screenshot 2024-12-30 at 4 46 57 PM Screenshot 2024-12-30 at 4 48 06 PM

Additional Information

This issue has persisted across multiple environments and configurations for over a month. Please let me know if further details or debugging information are needed to assist in resolving this issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions