Home > OS >  install react in project
install react in project

Time:05-10

when trying to install react, it outputs an error:

You are running create-react-app 4.0.3, which is behind the latest release (5.0.1).

We no longer support global installation of Create React App.

an attempt to reinstall node js on 16.15.0 or 18.1.0 failed. Also a solution from here "You are running create-react-app 4.0.3 which is behind the latest release (5.0.0)" it didn't help.What is the reason for this?

CodePudding user response:

solution 1:clean your npm npx cache

solution 2 : npx [email protected] my-app

CodePudding user response:

i think you are using create-react-app as globle package.. you should try npm uninstall -g create-react-app and then try npx create-react-app myapp

  • Related