Getting the following error while executing expo init command

后端 未结 5 814
臣服心动
臣服心动 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:34

    Please make sure, that you have git installed. NPM requires git for installing some of the packages. You can check if git is installed via:

    git --version
    

    If so, according to the reported issue, removing and reinstalling node_modules should help:

    rm -rf node_modules && npm install
    

    You can also try to resolve the issue with yarn:

    brew install yarn
    npm uninstall -g create-react-native-app
    yarn global add create-react-native-app
    

提交回复
热议问题