Search code examples
react-nativenpm-installreact-native-cli

`react-native init app` is not working in React-Native 0.56


React Native 0.56

I have already installed react-native-cli globally, and when I try to create a new project using react-native init myapp , I'm getting an error.

This is the error I face.

screenshot

env:- windows 10,node version v10.1.0, npm version 6.1.0, react native version 0.56

Previous projects are working well,but not able to create a new one.


Solution

  • This is a bug on react-native version 0.56
    Try react-native init [YourProject] --version react-native@0.55.4 to init the older version

    Source