I have an application file of react native that was running fine in vs code before but now whenever I tried to run it gives this error. I try to run it by
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)`
I have tried restarting and even create a new project but it is giving the same error. How can I do to resolve this error?
Start your server with
npx expo start -c
inside your terminal
-c is short for --clear
This problem is probably a network problem.
$ vim /etc/hosts
$ 104.18.4.104 api.expo.dev
$ export HTTP_PROXY=http://your_proxy_address:your_proxy_port
$ export HTTPS_PROXY=http://your_proxy_address:your_proxy_port
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With