今天我创建了一个新项目
create-react-native-app
在安装了依赖项之后,CRNA说要用
expo start
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
这是一些有用的信息:
创建react本机应用程序版本:2.0.2
节点版本:v8.11.3
世博版:2.2.0
npm版本:6.4.0
纱线版本:1.10.1