Node incompatible with module react issue

quick ‘how to’ to fix this issue

The other day I came across this issue while trying to generate a new react project, it deletes the react repo because of an issue with the version of node that you have installed.

As stated in the image, the reason why I was getting this issue was because I wasn't updated to the latest version of node, but when I tried to update using homebrew I was still getting the issue.
It turns out that I was getting the issue because of NVM which is a node version manager that I had installed a while ago.

To solve the issue with nvm, you simply have to type out ‘nvm install 14', or the latest node version, in your command line and that will install a newer version of node. with that, you can go ahead and run your command to create a new react application without any issues!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store