FetchError:请求https://api.expo.dev/v2/sdks/49.0.0/native-modules失败,原因:读取EQUIPMENT运行react native时出错

brc7rcf0  于 2023-11-21  发布在  React
关注(0)|答案(3)|浏览(611)

我有一个应用程序文件的React Native是运行罚款在vs代码之前,但现在每当我试图运行它给出了这个错误。我试图运行它的PS C:\User\Desktop\ReactNativeApp> npx expo start

Starting Metro Bundler

`FetchError: request to https://api.expo.dev/v2/sdks/49.0.0/native-modules failed, reason: 
 read ECONNRESET
 FetchError: request to https://api.expo.dev/v2/sdks/49.0.0/native-modules failed, reason: 
 read ECONNRESET
  at ClientRequest.<anonymous> (C:\User\Desktop\ReactNativeApp\node_modules\node- 
  fetch\lib\index.js:1501:11)

at ClientRequest.emit (node:events:513:28)
at TLSSocket.socketErrorListener (node:_http_client:502:9)
at TLSSocket.emit (node:events:513:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)`

字符串
我已经尝试重新启动,甚至创建一个新的项目,但它给出了同样的错误。我该如何解决这个错误?

jvidinwx

jvidinwx1#

启动您的服务器
npx expo start -c
在您的终端内

svmlkihl

svmlkihl2#

最近,我的目标是:npm start --reset-cache

qqrboqgw

qqrboqgw3#

尝试切换您的网络,在我的情况下,它的工作!

相关问题