Unable to reach Expo servers

Doing a ‘npm run android’ and getting the following. I’ll add the log mentioned in the last line in my next post.

my-app@1.0.0 android C:__kad\Projects\my-app
expo start --android

Starting project at C:__kad\Projects\my-app
Unable to reach Expo servers. Falling back to using the cached dependency map (bundledNativeModules.json) from the package “expo” installed in your project.
FetchError: request to https://api.expo.dev/v2/versions/latest failed, reason: unable to get local issuer certificate
FetchError: request to https://api.expo.dev/v2/versions/latest failed, reason: unable to get local issuer certificate
at ClientRequest. (C:__kad\Projects\my-app\node_modules\node-fetch\lib\index.js:1491:11)
at ClientRequest.emit (events.js:315:20)
at TLSSocket.socketErrorListener (_http_client.js:469:9)
at TLSSocket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
npm ERR! errno 1
npm ERR! my-app@1.0.0 android: expo start --android
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the my-app@1.0.0 android script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\KDobbs\AppData\Roaming\npm-cache_logs\2022-12-12T15_38_07_768Z-debug.log

Log file mentioned above:
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli ‘C:\Program Files\nodejs\node.exe’,
1 verbose cli ‘C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js’,
1 verbose cli ‘run’,
1 verbose cli ‘android’
1 verbose cli ]
2 info using npm@6.14.11
3 info using node@v14.16.0
4 verbose run-script [ ‘preandroid’, ‘android’, ‘postandroid’ ]
5 info lifecycle my-app@1.0.0~preandroid: my-app@1.0.0
6 info lifecycle my-app@1.0.0~android: my-app@1.0.0
7 verbose lifecycle my-app@1.0.0~android: unsafe-perm in lifecycle true
8 verbose lifecycle my-app@1.0.0~android: PATH: C:\Users\KDobbs\AppData\Roaming\nvm\v14.16.0\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:__kad\Projects\my-app\node_modules.bin;C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin;C:\Program Files\Eclipse Foundation\jdk-8.0.302.8-hotspot\bin;C:\Program Files\Microsoft\jdk-\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn;C:\Program Files\Azure Data Studio\bin;C:\Users\KDobbs\AppData\Roaming\nvm;C:\Program Files\Microsoft SQL Server\150\Tools\Binn;C:\Program Files\dotnet;C:\Program Files\Microsoft\Azure Functions Core Tools;C:\Users\KDobbs\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Users\KDobbs\AppData\Local\Programs\Git\cmd;C:\Users\KDobbs\AppData\Local\Microsoft\WindowsApps;C:\Users\KDobbs\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\KDobbs.dotnet\tools;C:\Program Files\nodejs;C:\Users\KDobbs\AppData\Local\gitkraken\bin;C:\Users\KDobbs.dotnet\tools;C:\Users\KDobbs\AppData\Local\Android\Sdk\platform-tools

9 verbose lifecycle my-app@1.0.0~android: CWD: C:__kad\Projects\my-app
10 silly lifecycle my-app@1.0.0~android: Args: [ ‘/d /s /c’, ‘expo start --android’ ]
11 silly lifecycle my-app@1.0.0~android: Returned: code: 1 signal: null
12 info lifecycle my-app@1.0.0~android: Failed to exec android script
13 verbose stack Error: my-app@1.0.0 android: expo start --android
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (C:\Users\KDobbs\AppData\Roaming\nvm\v14.16.0\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:315:20)
13 verbose stack at ChildProcess. (C:\Users\KDobbs\AppData\Roaming\nvm\v14.16.0\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:315:20)
13 verbose stack at maybeClose (internal/child_process.js:1048:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
14 verbose pkgid my-app@1.0.0
15 verbose cwd C:__kad\Projects\my-app
16 verbose Windows_NT 10.0.19044
17 verbose argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “run” “android”
18 verbose node v14.16.0
19 verbose npm v6.14.11
20 error code ELIFECYCLE
21 error errno 1
22 error my-app@1.0.0 android: expo start --android
22 error Exit status 1
23 error Failed at the my-app@1.0.0 android script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

Hi @keithdobbs-generac,

Sorry for the inconvenience. Is it working for you now or are you still facing the issue?

No, it is not working for me. I still have the issue.


It could be that the network you are using might be using a proxy. If that is the case please see how to troubleshoot that: Troubleshooting proxies - Expo Documentation