Chapter 2 setting up environment

sudo npm i -g create-react-app@1.5.2

npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.

what is the upgraded version in 2022

changed 66 packages, and audited 67 packages in 2s

1 package is looking for funding

run npm fund for details

2 high severity vulnerabilities

Some issues need review, and may require choosing

a different dependency.

Run npm audit for details.

That version of create-react-app is very old so you should probably try a newer version.

But I am new to React. So I am stuck at the second chapter

Not sure what to tell you. You can try to force all of your dependencies to work with a very old version by downgrading them all to be compatible or you will have to upgrade create-react-app by dropping the @1.5.2 from the install command.

So this is how you install a newer version of create-react-app:

sudo npm i -g create-react-app
1 Like


You have 2 approaches.

  • Respect the versions given by Mosh. This will give you the kind of messages you get.
  • Go with the latest versions. This will give you other kind of messages anyway at some point.

Just go with the last version as most people seem to do and @jmrunkle suggests. This makes pretty much sense. You don’t want to use outdated versions that are certainly full of bugs and securit holes that have been fixed in the mean time.

One of the common errors you will meet later is updating bcrypt. There are several topics on that matter in here. If by then this do not appear anymore then you’re all good.

Don’t worry. Use the latest version. At some point update bcrypt when needed.

You can check outdated packages with npm outdated and update them as simply as npm update.