Skip to content

Instantly share code, notes, and snippets.

@gaearon
Created January 8, 2018 17:02
Show Gist options
  • Save gaearon/4064d3c23a77c74a3614c498a8bb1c5f to your computer and use it in GitHub Desktop.
Save gaearon/4064d3c23a77c74a3614c498a8bb1c5f to your computer and use it in GitHub Desktop.
Creating a new project with npm <= 5.2

If you use npm 5.1 or earlier, you can't use npx. Instead, install create-react-app globally:

npm install -g create-react-app

Now you can run:

create-react-app my-app
@MALIKSHAHID786
Copy link

Thanks a lot for this post, Its help

Hi

@Kumar96487
Copy link

hii

@sushmita12345
Copy link

For everybody who had or may have a problem with installation, here is one example of a solution https://stackoverflow.com/questions/70358474/error-while-creating-new-react-app-you-are-running-create-react-app-4-0-3-w

It works for me. Thanks😇

@thenafeeskausar
Copy link

Try this one if your npm is 6+
npm init react-app my-app
npm init is available in npm 6+
The problems listed above aren't all that serious. This is taking place as a result of an upgrade to the react version.

@jamessv
Copy link

jamessv commented Oct 18, 2023

Try this code

npm init react-app my-app or npm create-react-app my-app
cd my-app
npm start

@AminuAs7
Copy link

Gteat

@WisdomNnam
Copy link

not working with this command please guide me
npm install -g create-react-app
create-react-app my-app
Screenshot (41)

``

__

@jamessv
Copy link

jamessv commented Nov 5, 2023

Please use this code
npm create-react-app my-app
cd my-app
npm start

@Lashish
Copy link

Lashish commented Jan 7, 2024

For everybody who had or may have a problem with installation, here is one example of a solution https://stackoverflow.com/questions/70358474/error-while-creating-new-react-app-you-are-running-create-react-app-4-0-3-w

It works for me. Thanks😇

thanks

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