update create react app

JavaScript
npm install react-scripts@latestnpx create-react-app my-app
cd my-app
npm start//open terminal and run thsi code 
cd newreact
//where newreact is the old react app you created
//open package.json in text editor and change the version to latest
//open the same terminal gain and run this
npm install

Source

Also in JavaScript: