首页 > 解决方案 > 运行 npm start 命令时发生错误?

问题描述

包.json

{
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web",
    "eject": "expo eject"
  },
  "dependencies": {
    ...
    "expo": "^1.0.0",
    "expo-image-picker": "~10.1.4",
    "expo-location": "~12.0.4",
    "expo-permissions": "~12.0.1",
    "expo-status-bar": "~1.0.4",
    ...
}

我的执行错误

运行时expo start,它会产生错误。

这些是我面临的问题,请帮助我。谢谢你。:)

标签: reactjsreact-native

解决方案


尝试运行这些命令。

npm install
npm run start

推荐阅读