'Why npx create-react-app is showing "the project was bootstrapped with an old unsupported version of tools"?

I recently switched to Ubuntu, whenever I create react app it's giving me this note, and the app it's creating is a class component.

ankit@gram:~/Documents/Development/React/react-project$ npx create-react-app my-app

Creating a new React app in /home/ankit/Documents/Development/React/react-project/my-app.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...


added 987 packages in 39s

22 packages are looking for funding
  run `npm fund` for details

Success! Created my-app at /home/ankit/Documents/Development/React/react-project/my-app
Inside that directory, you can run several commands:

  npm start
    Starts the development server.

  npm run build
    Bundles the app into static files for production.

  npm test
    Starts the test runner.

  npm run eject
    Removes this tool and copies build dependencies, configuration files
    and scripts into the app directory. If you do this, you can’t go back!

We suggest that you begin by typing:

  cd my-app
  npm start

Happy hacking!

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

my node version: v16.14.0 my npm version:8.3.1



Solution 1:[1]

I think this was because npx was not installed in my system, when I created a react app by this command create-react-app the app created was fine. I also installed npx using this command npm install -g npx and created a react app and everything was fine. before this make sure you have installed create-react-app in your system if not then install it by using this command sudo npm install -g create-react-app

Solution 2:[2]

I am a new programmer had this issue not long ago I just solved it.

Use sudo apt install nodejs

It will automatically install version 10 for you which doesn't accept React.

Then you try to install NVM package, use it to update your node to a newer version.

You can check me on GitHub bari racha Wuye

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ankit Kumar
Solution 2 Roman Mahotskyi