Expo CLI: Socket Hang Up

Hello all! First time posting an issue here :slight_smile:

I’ve been doing some training on Udacity’s React Native project, and an issue comes up. The troubleshooting has not been going well. I need to sign in my Expo account via a Windows terminal, which works with a corporate proxy. A few points to consider:

  • NPM and Yarn are configured to include the corporate proxy and run without any issue.
  • Create-react-native-app command runs successfully
  • Running ‘expo signin’ immediately return an error “socket hang up”

The error message says below:
Error: socket hang up
at createHangUpError (_http_client.js:323:15)
at Socket.socketOnEnd (_http_client.js:426:23)
at Socket.emit (events.js:194:15)
at endReadableNT (_stream_readable.js:1125:12)
at process._tickCallback (internal/process/next_tick.js:63:19)

Does anyone have a tip for me to resolve this issue? This is blocking my training.

Thanks in advance!

Hi

First, create-react-native-app is pretty old. You should use expo init instead.

Screenshot%20from%202019-11-13%2017%3A47%3A13

I think that setting the https_proxy environment variable should get node (and therefore expo) talking to your proxy server.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.