create-react-app app安装报错的解决办法

 在终端中输入create-react-app ~~搭建react开发环境时可能会报这种错:

error [email protected]: The engine "node" is incompatible with this module. Expected version "^8.10.0 || ^10.13.0 || >=11.10.1". Got "11.3.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Aborting installation.
  yarnpkg add --exact react react-dom react-scripts --cwd e:\sReact\study\firstapp has failed.

Deleting generated file... package.json
Deleting firstapp/ from e:\sReact\study
Done.


解决方法:yarn config set ignore-engines true

yarn config set ignore-engines true

你可能感兴趣的:(react,react,解决报错)