create-react-app unsupported node version

Viewed 2188

I'm trying to create a new ReactJS app with create-react-app on Ubuntu 18.10. When I run create-react-app myapp I get the following note:

Note: the project was bootstrapped with an old unsupported version of tools. Please update to Node >=6 and npm >=3 to get supported tools in new projects.

But when I check my node version with node -v I get v10.13.0 and checking npm with npm -v shows 6.4.1. create-react-app --version shows 2.1.1. So both my Node version and npm version are greater than the versions specified.

I'm not sure what to do with this since my versions are already above the versions specified. Any suggestions on how to fix this?

4 Answers

Check to see if there is any linkering node_modules/ folder in the path or in the root folder and try to remove that before running the command.

I have also faced the same. I have just cut and paste the my-app folder to my home directory and found solution. You can do the same or reinstall it to your home directory.

Instead of installing create-react-app as globally, you can create a new react project with npx create-react-app myapp.

This happened to me when I installed node on ubuntu using snap. When I uninstalled the snap version and used nvm to install instead, I no longer got that error.

Related