Skip to content

Commit

Permalink
chore(docs): clarify react upgrade with --legacy-peer-deps (#38359)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaltepeter authored Jul 21, 2023
1 parent e5126f9 commit 2e08202
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/docs/reference/release-notes/migrating-from-v4-to-v5.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ Or run
npm install react@latest react-dom@latest
```

Please note: If you use npm 7 or higher you'll want to use the `--legacy-peer-deps` option when following the instructions in this guide. For example, the above command would be:

```shell
npm install react@latest react-dom@latest --legacy-peer-deps
```

### Update Gatsby related packages

Update your `package.json` to use the `latest` version for all Gatsby related packages. You should upgrade any package name that starts with `gatsby-*`. Note that this only applies to plugins managed in the [gatsbyjs/gatsby](https://github.com/gatsbyjs/gatsby) repository. All packages we manage received a major version bump. Community plugins may not be upgraded yet so please check their repository for the current status.
Expand Down

0 comments on commit 2e08202

Please sign in to comment.