`react-native init AwesomeProject` throwing SyntaxError

后端 未结 3 445
情话喂你
情话喂你 2021-01-21 22:30

react-native init AwesomeProject is throwing SyntaxError: Unexpected token : and I\'m not sure why. I\'ve uninstalled and re-installed react-native-cli

3条回答
  •  盖世英雄少女心
    2021-01-21 22:45

    Apparently the new version React Native 0.56.0 has this problem.

    To fix this problem, you can install the previous version.

    react-native init --version="0.55.0" MyNewApp
    

提交回复
热议问题