Getting the following error while executing expo init command

后端 未结 5 812
臣服心动
臣服心动 2020-12-07 03:55
Installing dependencies...
npm WARN deprecated core-js@1.2.7: core-js@<2.6.5 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version o         


        
5条回答
  •  生来不讨喜
    2020-12-07 04:18

    The default expo-template-blank template points react-native to their own Github repo - installing from a Github repo might cause the NPM to hang or err out for various reasons.

    To work around this ctrl-c to interrupt initialization when it proceeds to install the dependencies after the project scaffolding is done, edit the package.json to install react-native from the NPM registry - for example this is how my dependencies look:

     "dependencies": {
        "expo": "^35.0.1",
        "react": "^16.8.3",
        "react-dom": "^16.8.3",
        "react-native": "^0.59.10"
    //...
    

    Then manually do npm i to install the dependencies and enjoy.

提交回复
热议问题