Home > Article > Web Front-end > What to do if there is an error in react installation
Solution to react installation error: 1. Use "create-react-app" to install react; 2. Execute "$ yarn config set ignore-engines true $ re-rf react-demo-1 $ create- react-app react-demo-1" command can solve the installation error problem.
The operating environment of this tutorial: Windows 10 system, react18.0.0 version, Dell G3 computer.
What should I do if there is an error in react installation?
react installation and installation error solutions
1. Installation
To install react, you can use create-react-app or webpack and rollup installation, the first one is used here
$ yarn global add create-react-app $ create-react-app react-demo-1
2. When executing the above two commands, an error is reported:
3. Just execute the following command You can solve it
$ yarn config set ignore-engines true $ re-rf react-demo-1 $ create-react-app react-demo-1
Recommended learning: "react video tutorial"
The above is the detailed content of What to do if there is an error in react installation. For more information, please follow other related articles on the PHP Chinese website!