Cannot `expo login`

I started to use expo.
I could create project by expo init.
So I tried to expo login, but I got error.
I got

Request failed with status code 400
Error: Request failed with status code 400
    at createError (/Users/***/.nodebrew/node/v10.0.0/lib/node_modules/expo-cli/node_modules/xdl/node_modules/axios/lib/core/createError.js:16:15)
    at settle (/Users/***/.nodebrew/node/v10.0.0/lib/node_modules/expo-cli/node_modules/xdl/node_modules/axios/lib/core/settle.js:17:12)
    at IncomingMessage.handleStreamEnd (/Users/***/.nodebrew/node/v10.0.0/lib/node_modules/expo-cli/node_modules/xdl/node_modules/axios/lib/adapters/http.js:236:11)
    at IncomingMessage.emit (events.js:187:15)
    at endReadableNT (_stream_readable.js:1091:14)
    at process._tickCallback (internal/process/next_tick.js:174:19)

This is my env.

  Expo CLI 2.13.0 environment info:
      OS: macOS 10.14.4
      Shell: 3.2.57 - /bin/bash
      Node: 10.0.0 - ~/.nodebrew/current/bin/node
      Yarn: 1.13.0 - /usr/local/bin/yarn
      npm: 5.6.0 - ~/.nodebrew/current/bin/npm
      Android Studio: 3.3 AI-182.5107.16.33.5314842
      Xcode: 10.2/10E125 - /usr/bin/xcodebuild
      expo: ^32.0.0 => 32.0.6 
      react: 16.5.0 => 16.5.0 
      react-native: => 0.57.1 
      react-navigation: ^3.0.9 => 3.5.1 
      expo-cli: 2.13.0

My network is via proxy server.
So I read
And setup has already been completed

expo-cli@2.4.1 published! A fresh install of expo-cli , i. e.

npm uninstall -g expo-cli && npm i -g expo-cli

solves the issue (I don’t know if plain npm i -g expo-cli works too, but it should).

reference link

1 Like

not solve this problem


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