Search code examples
react-nativeyarnpkgreact-native-cli

React Native - Can not create new project via react-native-cli when react-native version is > 0.55


I am trying to create new project via react native project via react-native-cli react-native init ProjectName and get the following error

error Found incompatible module info

Visit https://yarnpkg.com/en/docs/cli/add for documentation about this

Error: Command failed: yarn add react-native --exact

Project can be created with the same command when react native version is less then or equal to 0.54

react-native init ProjectName --version react-native@0.54

The following links also did not helped me.

https://github.com/facebook/react-native/issues/14861

https://github.com/yarnpkg/yarn/issues/3227


Solution

  • I solve the problem just moment.

    the reason is node version problem.

    you can install >10.0 node.

    then, react-native init project succeed.