React project build problems and solutions

1. Use create-react-app project to create a project result that will report such a prompt

You are running `create-react-app` 5.0.0, which is behind the latest release (5.0.1).

insert image description here
It is because the currently running version is behind the latest version and does not support global installation;
first: use: uninstall the previously installed version

-	yarn global remove create-react-app
-	npm uninstall -g create-react-app

The uninstallation is successful as follows:
insert image description here
Next, install:

insert image description here
success:

insert image description here

Guess you like

Origin blog.csdn.net/weixin_45103130/article/details/124424620