Whenever i was creating react app using
$ npx create-react-app app-name
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.
I have got two solutions for this for that go through through this video in details :
Top comments (9)
Just run:
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?
This doest work i draws an error
Yes it works. You might be using a really old
npm
version, or you might have an old version ofcreate-react-app
cached so you need to add@latest
:Any project that starts with
create-
can be used withnpm init
.Thank you so much!
Glad it was helpful for you.
Solution #1 worked perfectly. Thanks much!
Glad it was helpful for you , Be sure to subscribe.
Solution 1 worked!!
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