React native wrapItem(…)。从世博会开始,反应自然

React native wrapItem(…)。从世博会开始,反应自然,react-native,expo,create-react-native-app,React Native,Expo,Create React Native App,今天,我用create react native app创建了一个新项目,安装依赖项后,CRNA说用expo start启动项目,运行此命令后,一切似乎都很好,chrome打开了一个页面localhost:19002,但一分钟后,此页面被停止,控制台上显示: [12:26:47] Starting project at D:\Try\eleventh [12:27:13] Warning: Problem validating app.json: Unable to perform ca

今天,我用
create react native app
创建了一个新项目,安装依赖项后,CRNA说用
expo start
启动项目,运行此命令后,一切似乎都很好,chrome打开了一个页面
localhost:19002
,但一分钟后,此页面被停止,控制台上显示:

  [12:26:47] Starting project at D:\Try\eleventh
  [12:27:13] Warning: Problem validating app.json: Unable to perform cache 
  refresh for C:\Users\Mohammad\AppData\Local\Expo\schema-30.0.0.json: 
  Error: connect ETIMEDOUT 35.202.142.166:443.
  [12:27:39] Starting Metro Bundler on port 19001.
  [12:27:39] Metro Bundler ready.
  [12:27:40] Opening on Android device
  [12:27:40] Successfully ran `adb reverse`. Localhost URLs should work on 
  the connected Android device.
  [12:27:44] Tunnel ready.
  [12:27:44] Expo DevTools is running at http://localhost:19002
  [12:27:44] Opening DevTools in the browser... (press shift-d to disable)

   exp://192.168.89.2:19000





























    To run the app with live reloading, choose one of:
   [12:27:44] wrapItem(...).trimStart is not a function
   [12:27:44] Set EXPO_DEBUG=true in your env to view the stack trace.
  wrapItem(...).trimStart is not a function
正如你看到的,上面写着:

  [12:26:47] Starting project at D:\Try\eleventh
  [12:27:13] Warning: Problem validating app.json: Unable to perform cache 
  refresh for C:\Users\Mohammad\AppData\Local\Expo\schema-30.0.0.json: 
  Error: connect ETIMEDOUT 35.202.142.166:443.
  [12:27:39] Starting Metro Bundler on port 19001.
  [12:27:39] Metro Bundler ready.
  [12:27:40] Opening on Android device
  [12:27:40] Successfully ran `adb reverse`. Localhost URLs should work on 
  the connected Android device.
  [12:27:44] Tunnel ready.
  [12:27:44] Expo DevTools is running at http://localhost:19002
  [12:27:44] Opening DevTools in the browser... (press shift-d to disable)

   exp://192.168.89.2:19000





























    To run the app with live reloading, choose one of:
   [12:27:44] wrapItem(...).trimStart is not a function
   [12:27:44] Set EXPO_DEBUG=true in your env to view the stack trace.
  wrapItem(...).trimStart is not a function
这是一些有用的信息:

创建本地应用程序版本:2.0.2

节点版本:v8.11.3

博览会版本:2.2.0

npm版本:6.4.0


纱线版本:1.10.1

尝试使用更高版本的节点。我在使用节点版本8时也遇到了这个问题。使用
nvm
将其与节点12碰撞成功。

您找到解决方案了吗?