The development server returned response error code: 500 in react native

前端 未结 16 1270
夕颜
夕颜 2021-02-05 01:29

I am using react-native framework for developing my android app. I want to use react-native-material-design library for making Toolbar wit

16条回答
  •  一个人的身影
    2021-02-05 02:01

    First execute, to get the version number:

    C:\WINDOWS\system32>react-native -v react-native-cli
    

    2.0.1 react-native: 0.56.0

    Then I uninstalled react-native:

    C:\WINDOWS\system32>npm uninstall -g react-native-cli
    

    removed 41 packages in 3.999s

    Then I installed react-native:

    npm install react-native@0.55.4
    

    Then I installed react-native-cli:

    npm install -g react-native-cli@1.2.0
    

    Then use this installation to create a react-native project:

    react-native init --version="0.55.4" myprojectname
    

提交回复
热议问题