Files
create-react-app/docusaurus/docs/updating-to-new-releases.md
Ben Carp ed5fb1066b Update updating-to-new-releases.md with note about global installs (#6190)
* Update updating-to-new-releases.md

Related to https://github.com/facebook/create-react-app/issues/6140

* Update updating-to-new-releases.md

Linking to getting started following discussion on #6190. 
Adapt terminology to current installation methods.

* Update updating-to-new-releases.md

typo, rleative link

* Update docusaurus/docs/updating-to-new-releases.md

Co-Authored-By: carpben <carpben@users.noreply.github.com>
2019-01-19 19:13:37 -07:00

1.5 KiB
Raw Blame History

id, title
id title
updating-to-new-releases Updating to New Releases

Create React App is divided into two packages:

  • create-react-app is a global command-line utility that you use to create new projects.
  • react-scripts is a development dependency in the generated projects (including this one).

When you run npx create-react-app my-app it automatically installs the latest version of Create React App.

If you've previously installed create-react-app globally via npm install -g create-react-app, please visit Getting Started to learn about current installation steps.

Create React App creates the project with the latest version of react-scripts so youll get all the new features and improvements in newly created apps automatically.

To update an existing project to a new version of react-scripts, open the changelog, find the version youre currently on (check package.json in this folder if youre not sure), and apply the migration instructions for the newer versions.

In most cases bumping the react-scripts version in package.json and running npm install (or yarn install) in this folder should be enough, but its good to consult the changelog for potential breaking changes.

We commit to keeping the breaking changes minimal so you can upgrade react-scripts painlessly.