当键入npm start时,终端上没有QRCode

时间:2018-04-16 15:00:36

标签: react-native

我输入命令create-react-native-app <My package name>

然后我输入npm start我可以在终端上看到QRCode显示

但是当我为我的项目输入npm run eject

我再次输入npm start。我的终端上没有QRCode节目了。 enter image description here

我找一些答案仍然无法解决。它与我很困惑。

这是我的环境: Mac OS:10.13.4

{
  "name": "TestMovie2",
  "version": "0.1.0",
  "private": true,
  "devDependencies": {
    "babel-preset-react-native-stage-0": "^1.0.1",
    "eslint-config-rallycoding": "^3.2.0",
    "jest": "^22.4.3",
    "jest-react-native": "^18.0.0",
    "react-test-renderer": "16.3.0-alpha.1"
  },
  "scripts": {
    "start": "react-native start",
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "test": "jest"
  },
  "jest": {
    "preset": "react-native"
  },
  "dependencies": {
    "@shoutem/animation": "^0.12.2",
    "@shoutem/ui": "^0.23.4",
    "react": "16.3.0-alpha.1",
    "react-native": "0.54.0"
  }
}

1 个答案:

答案 0 :(得分:4)

希望您已经解决了问题,但是仍然遇到问题的任何人都可以键入 expo start 而不是npm start