I am trying to run create-react-app and keep getting an error about updating my node version:
The engine "node" is incompatible with this module. Expected version "^8.10.0 || ^10.13.0 || >=11.10.1". Got "11.10.0"
I found this post and tried using sudo n stable
. The output was:
installed : v12.14.0 to /usr/local/bin/node
active : v11.10.0 at /Users/Kristin/.nvm/versions/node/v11.10.0/bin/node
I am noting here that the version I have installed is 12.14.0 but 11.1.0 is the one being used. Could that be the issue?
After that, I did the following:
npm install create-react-app -g
create-react-app myappname
I was unable to install create-react-app due to this error:
npm WARN saveError ENOENT: no such file or directory, open '/Users/Kristin/flatiron/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/Users/Kristin/flatiron/package.json'
npm WARN flatiron No description
npm WARN flatiron No repository field.
npm WARN flatiron No README data
npm WARN flatiron No license field.
Is it possible that I am still running the incorrect version of node or is there something else going on here?
Thank you in advance for your time and advice!