npm start挂在“正在启动打包程序...”(MacOS)

时间:2019-02-24 23:03:57

标签: react-native expo

我正在关注有关使用ReactNative构建应用程序的教程。由于某种原因,当我运行npm start或yarn start时,应用程序挂起。

有多个与此问题相关的线程,但是在我的情况下,没有一种解决方案有效: (https://github.com/react-community/create-react-native-app/issues/203

React Native npm start gets stuck at Starting Packager

这是我的package.json:

{
  "name": "react-native-redux-crypto-tracker",
  "version": "0.1.0",
  "private": true,
  "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": "node node_modules/jest/bin/jest.js --watch",
    "postinstall": "remotedev-debugger --hostname localhost --port 5678 --injectserver"
  },
  "remotedev": {
    "hostname": "localhost",
    "port": 5678
  },
  "jest": {
    "preset": "jest-expo"
  },
  "devDependencies": {
    "jest-expo": "^21.0.2",
    "react-native-debugger-open": "^0.3.15",
    "react-native-scripts": "1.5.0",
    "react-test-renderer": "16.0.0-alpha.12",
    "remote-redux-devtools": "^0.5.12",
    "remotedev-rn-debugger": "^0.8.3",
    "redux-logger": "^3.0.6"
  },
  "dependencies": {
    "axios": "^0.16.2",
    "expo": "^26.0.0",
    "react": "16.5.0",
    "react-native": "0.54.2",
    "react-redux": "^5.0.6",
    "redux": "^3.7.2",
    "redux-promise": "^0.5.3",
    "redux-thunk": "^2.2.0"
  }
}

app.json:

{
  "expo": {
    "sdkVersion": "26.0.0"
  }
}

有人知道为什么它不能在Expo上构建和运行吗?

0 个答案:

没有答案