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!