Upgrade Your React.js Project!

Raq Robinson
4 min readAug 14, 2020

Let’s say you want to share one of your projects written a year ago with your pal (who happens to be a fellow developer). How would you update the project and ensure that it still runs securely and seamlessly?

A great place to start is within your package.json file.

The image above shows that the version of React in this project is out of date. To update the project, clone the repo, and open your package.json file in your preferred editor.

Typically, when you first clone a repo, you want to make sure the project will run successfully. Usenpm installto download dependencies and npm startto run the server.

If the project is out of date, you will probably see a bunch of errors and warnings returned that might look something like the image below:

Screenshot of terminal with error messages after running `npm start`.

--

--