DEV Community

Cover image for We no longer support global installation of Create React App
Code With Arjun
Code With Arjun

Posted on

 

We no longer support global installation of Create React App

Whenever i was creating react app using

$ npx create-react-app app-name
Enter fullscreen mode Exit fullscreen mode

It was showing error something like this

We are running `create-react-app` 4.0.3, 
which is behind the latest release (5.0.0).

We no longer support global installation of Create React App.

Enter fullscreen mode Exit fullscreen mode

I have got two solutions for this for that go through through this video in details :

Top comments (9)

Collapse
 
lukeshiru profile image
Luke Shiru • Edited

Just run:

npm init react-app your-app-name
Enter fullscreen mode Exit fullscreen mode

Which is available for ages now.

Cheers!

PS: Instead of posting a video, why not put the solution here directly? After all this is a blogging platform, right?

Collapse
 
gmako6 profile image
gmako6

This doest work i draws an error

Collapse
 
lukeshiru profile image
Luke Shiru

Yes it works. You might be using a really old npm version, or you might have an old version of create-react-app cached so you need to add @latest:

npm init react-app@latest your-app-name
Enter fullscreen mode Exit fullscreen mode

Any project that starts with create- can be used with npm init.

Collapse
 
catreunion profile image
Isaac Li

Thank you so much!

Collapse
 
codewitharjun profile image
Code With Arjun

Glad it was helpful for you.

Collapse
 
jatanops profile image
jatan-ops

Solution #1 worked perfectly. Thanks much!

Collapse
 
codewitharjun profile image
Code With Arjun

Glad it was helpful for you , Be sure to subscribe.

Collapse
 
gourab337 profile image
Gourab Chakraborty

Solution 1 worked!!

Collapse
 
gmako6 profile image
gmako6

use this code below:

npx create-react-app@latest

if you use the other normal installation it will throw an error, facebook recommends to use latest CRA

Need a better mental model for async/await?

Check out this classic DEV post on the subject.

⭐️🎀 JavaScript Visualized: Promises & Async/Await

async await