Home  >  Article  >  Web Front-end  >  What to do if there is an error in react installation

What to do if there is an error in react installation

藏色散人
藏色散人Original
2022-12-28 10:30:591989browse

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.

What to do if there is an error in react installation

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:

What to do if there is an error in react installation

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn