首页 > react-native执行初始化项目后报错

react-native执行初始化项目后报错

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2675/head -> refs/pull/2675/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2677/head -> refs/pull/2677/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2679/head -> refs/pull/2679/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/268/head -> refs/pull/268/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/268/merge -> refs/pull/268/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2683/head -> refs/pull/2683/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2683/merge -> refs/pull/2683/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2684/head -> refs/pull/2684/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2684/merge -> refs/pull/2684/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2685/head -> refs/pull/2685/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2685/merge -> refs/pull/2685/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2689/head -> refs/pull/2689/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/269/head -> refs/pull/269/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/269/merge -> refs/pull/269/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2690/head -> refs/pull/2690/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2693/head -> refs/pull/2693/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2693/merge -> refs/pull/2693/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2694/head -> refs/pull/2694/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2695/head -> refs/pull/2695/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2697/head -> refs/pull/2697/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2697/merge -> refs/pull/2697/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2699/head -> refs/pull/2699/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2699/merge -> refs/pull/2699/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/27/head -> refs/pull/27/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/27/merge -> refs/pull/27/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/270/head -> refs/pull/270/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/270/merge -> refs/pull/270/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2700/head -> refs/pull/2700/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2702/head -> refs/pull/2702/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2702/merge -> refs/pull/2702/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2704/head -> refs/pull/2704/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2704/merge -> refs/pull/2704/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2705/head -> refs/pull/2705/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2707/head -> refs/pull/2707/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2708/head -> refs/pull/2708/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2710/head -> refs/pull/2710/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2715/head -> refs/pull/2715/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2715/merge -> refs/pull/2715/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2716/head -> refs/pull/2716/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2717/head -> refs/pull/2717/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2717/merge -> refs/pull/2717/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2718/head -> refs/pull/2718/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2720/head -> refs/pull/2720/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2720/merge -> refs/pull/2720/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2724/head -> refs/pull/2724/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2726/head -> refs/pull/2726/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2727/head -> refs/pull/2727/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2732/head -> refs/pull/2732/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2733/head -> refs/pull/2733/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2734/head -> refs/pull/2734/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2735/head -> refs/pull/2735/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2735/merge -> refs/pull/2735/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2737/head -> refs/pull/2737/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2737/merge -> refs/pull/2737/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/274/head -> refs/pull/274/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/274/merge -> refs/pull/274/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2740/head -> refs/pull/2740/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2744/head -> refs/pull/2744/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2745/head -> refs/pull/2745/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2748/head -> refs/pull/2748/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/275/head -> refs/pull/275/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/275/merge -> refs/pull/275/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2751/head -> refs/pull/2751/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2752/head -> refs/pull/2752/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2754/head -> refs/pull/2754/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2755/head -> refs/pull/2755/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2755/merge -> refs/pull/2755/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2759/head -> refs/pull/2759/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/276/head -> refs/pull/276/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/276/merge -> refs/pull/276/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2760/head -> refs/pull/2760/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2765/head -> refs/pull/2765/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2767/head -> refs/pull/2767/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2768/head -> refs/pull/2768/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2769/head -> refs/pull/2769/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/277/head -> refs/pull/277/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/277/merge -> refs/pull/277/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2771/head -> refs/pull/2771/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2772/head -> refs/pull/2772/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2773/head -> refs/pull/2773/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2774/head -> refs/pull/2774/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2774/merge -> refs/pull/2774/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2783/head -> refs/pull/2783/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2785/head -> refs/pull/2785/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2788/head -> refs/pull/2788/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/279/head -> refs/pull/279/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/279/merge -> refs/pull/279/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2791/head -> refs/pull/2791/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2793/head -> refs/pull/2793/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2795/head -> refs/pull/2795/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2799/head -> refs/pull/2799/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/280/head -> refs/pull/280/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/280/merge -> refs/pull/280/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2800/head -> refs/pull/2800/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2801/head -> refs/pull/2801/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2802/head -> refs/pull/2802/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2805/head -> refs/pull/2805/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2806/head -> refs/pull/2806/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2807/head -> refs/pull/2807/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2808/head -> refs/pull/2808/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/281/head -> refs/pull/281/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/281/merge -> refs/pull/281/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2814/head -> refs/pull/2814/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2818/head -> refs/pull/2818/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/282/head -> refs/pull/282/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/282/merge -> refs/pull/282/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2821/head -> refs/pull/2821/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2822/head -> refs/pull/2822/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2824/head -> refs/pull/2824/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/283/head -> refs/pull/283/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/283/merge -> refs/pull/283/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2830/head -> refs/pull/2830/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2832/head -> refs/pull/2832/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2842/head -> refs/pull/2842/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2844/head -> refs/pull/2844/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2847/head -> refs/pull/2847/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2851/head -> refs/pull/2851/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2852/head -> refs/pull/2852/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2853/head -> refs/pull/2853/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2854/head -> refs/pull/2854/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2859/head -> refs/pull/2859/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/286/head -> refs/pull/286/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/286/merge -> refs/pull/286/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2864/head -> refs/pull/2864/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2864/merge -> refs/pull/2864/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2865/head -> refs/pull/2865/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2866/head -> refs/pull/2866/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2867/head -> refs/pull/2867/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2868/head -> refs/pull/2868/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/287/head -> refs/pull/287/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/287/merge -> refs/pull/287/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2874/head -> refs/pull/2874/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2875/head -> refs/pull/2875/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2876/head -> refs/pull/2876/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2876/merge -> refs/pull/2876/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2877/head -> refs/pull/2877/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2877/merge -> refs/pull/2877/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2878/head -> refs/pull/2878/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2878/merge -> refs/pull/2878/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2879/head -> refs/pull/2879/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2879/merge -> refs/pull/2879/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/288/head -> refs/pull/288/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/288/merge -> refs/pull/288/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2881/head -> refs/pull/2881/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2884/head -> refs/pull/2884/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2888/head -> refs/pull/2888/head

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2888/merge -> refs/pull/2888/merge

npm ERR! git fetch -a origin (git://github.com/facebook/react.git) * [new ref]

    refs/pull/2889/head -> refs/pull/2889/head

npm ERR!
npm install --save react-native failed
我在执行了react-native init test初始化项目,经历了漫长的下载时间后报错


RN在创建项目时会连接到github.com/facebook/react-native,可能是网络问题,你可以在npm中添加淘宝镜像源后重试。

【热门文章】
【热门文章】