Skip to content

Commit 2e08202

Browse files
authored
chore(docs): clarify react upgrade with --legacy-peer-deps (#38359)
1 parent e5126f9 commit 2e08202

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/docs/reference/release-notes/migrating-from-v4-to-v5.md

+6
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ Or run
7777
npm install react@latest react-dom@latest
7878
```
7979

80+
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:
81+
82+
```shell
83+
npm install react@latest react-dom@latest --legacy-peer-deps
84+
```
85+
8086
### Update Gatsby related packages
8187

8288
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.

0 commit comments

Comments
 (0)