firebase-tools: Firebase-tools init commands fails on the second step on Windows and Linux platform. Terminal Freezes.
[REQUIRED] Environment info
firebase-tools: firebase-tools version 7.0.0 ($ firebase -v
, 7.0.0
.)
Node.js : v12.4.0
npm : v6.9.0
Platform: Windows 10 Build 1903
. Ubuntu 19.04 Linux Kernel 5+
.
[REQUIRED] Test case
Failure on second step of sudo firebase init
.
Install Command sudo npm -g firebase-tools
followed by sudo firebase login
.
Fails on sudo firebase init
.
? Select a default Firebase project for this directory: (Use arrow keys)
❯ [don't setup a default project]
fir-demo-project (Firebase Demo Project)
[create a new project]
[REQUIRED] Steps to reproduce
$ sudo firebase login
$ sudo firebase init
[REQUIRED] Expected behavior
Proceeds to making third step with creation of .firebaserc
or firebase.json
file settings. But the terminal windows freezes after the above step as shown on Steps to reproduce
.
[REQUIRED] Actual behavior
[debug] [2019-06-20T12:36:38.041Z] ----------------------------------------------------------------------
[debug] [2019-06-20T12:36:38.043Z] Command: /usr/bin/node /usr/bin/firebase init
[debug] [2019-06-20T12:36:38.043Z] CLI Version: 7.0.0
[debug] [2019-06-20T12:36:38.043Z] Platform: linux
[debug] [2019-06-20T12:36:38.043Z] Node Version: v12.4.0
[debug] [2019-06-20T12:36:38.043Z] Time: Thu Jun 20 2019 05:36:38 GMT-0700 (Pacific Daylight Time)
[debug] [2019-06-20T12:36:38.043Z] ----------------------------------------------------------------------
[debug]
[debug] [2019-06-20T12:36:38.046Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] [2019-06-20T12:36:38.047Z] > authorizing via signed-in user
[info]
######## #### ######## ######## ######## ### ###### ########
## ## ## ## ## ## ## ## ## ## ##
###### ## ######## ###### ######## ######### ###### ######
## ## ## ## ## ## ## ## ## ## ##
## #### ## ## ######## ######## ## ## ###### ########
You're about to initialize a Firebase project in this directory:
/home/ubuntu-server/firebase
[info]
=== Project Setup
[info]
[info] First, let's associate this project directory with a Firebase project.
[info] You can create multiple project aliases by running firebase use --add,
[info] but for now we'll just set up a default project.
[info]
[debug] [2019-06-20T12:36:47.846Z] > refreshing access token with scopes: ["email","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","openid"]
[debug] [2019-06-20T12:36:47.847Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token
<request body omitted>
[debug] [2019-06-20T12:36:48.258Z] <<< HTTP RESPONSE 200
[debug] [2019-06-20T12:36:48.260Z] >>> HTTP REQUEST GET https://firebase.googleapis.com/v1beta1/projects?page_size=100
[debug] [2019-06-20T12:36:49.179Z] <<< HTTP RESPONSE 200
[debug] [2019-06-20T12:40:48.359Z] Error: setRawMode EIO
at ReadStream.setRawMode (tty.js:73:31)
at Interface._setRawMode (readline.js:275:16)
at Interface.close (readline.js:398:10)
at ReadStream.ontermend (readline.js:185:10)
at ReadStream.emit (events.js:200:13)
at ReadStream.EventEmitter.emit (domain.js:471:20)
at endReadableNT (_stream_readable.js:1154:12)
at processTicksAndRejections (internal/process/task_queues.js:84:9)
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (5 by maintainers)
Thank you for all your patience. The fix has been made and released in
v7.0.1
, please upgrade to it (npm i -g firebase-tools@latest
). If you’re still seeing the issue on that new version, please let us know.