create-react-native-app打包程序在启动时被卡住

时间:2018-09-07 17:50:53

标签: react-native

enter image description here

使用以下结构创建的文件夹无法启动打包程序

create-react-native-app AwesomeProject

cd AwesomeProject
npm start

我的设置是:

OS: Windows 10
Node: 10.10.0
Yarn: 1.6.0
npm: 6.2.0-next.1
Watchman: Not Found
Xcode: N/A
Android Studio: Version 3.1.0.0 AI-173.4720617

我尝试更改NPM,expo,react-native和react的版本,甚至尝试操作Metro bundler都没有结果。

{
  "name": "AwesomeProject",
  "version": "0.1.0",
  "private": true,
  "devDependencies": {
    "react-native-scripts": "1.14.0",
    "jest-expo": "~27.0.0",
    "react-test-renderer": "16.3.1"
  },
  "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
  "scripts": {
    "start": "react-native-scripts start",
    "eject": "react-native-scripts eject",
    "android": "react-native-scripts android",
    "ios": "react-native-scripts ios",
    "test": "jest"
  },
  "jest": {
    "preset": "jest-expo"
  },
  "dependencies": {
    "expo": "^27.0.1",
    "react": "16.3.1",
    "react-native": "~0.55.2"
  }
}

此脚本有日志吗?我在哪里可以看到失败的原因以及如何解决此问题。

0 个答案:

没有答案