Firebase Login Unexpected error

522 views
Skip to first unread message

Tincho

unread,
Nov 19, 2016, 9:44:14 AM11/19/16
to Firebase Google Group
Hello,

I am doing my first steps with Firebase.  For this, I am following this guide.
Step 5 of it request to do a "firebase login" in the command prompt, which is ending with unexpected errors every time.  I can't continue from here, stuck for about a week now.  I investigated here but I couldn't find an answer.

Does anyone know what I am doing wrong?

Following you can find the debug log:
[debug] CLI Version:  3.1.0
[debug] Platform:     win32
[debug] Node Version: v7.1.0
[debug] Time:         Sat Nov 19 2016 11:30:34 GMT-0300 (SA Eastern Standard Time)
[debug] ----------------------------------------------------------------------
[debug] 
[debug] Error: write EINVAL
    at exports._errnoException (util.js:1022:11)
    at WriteStream.Socket._writeGeneric (net.js:715:26)
    at WriteStream.Socket._write (net.js:734:8)
    at doWrite (_stream_writable.js:334:12)
    at writeOrBuffer (_stream_writable.js:320:5)
    at WriteStream.Writable.write (_stream_writable.js:247:11)
    at WriteStream.Socket.write (net.js:661:40)
    at MuteStream.ondata (stream.js:31:26)
    at emitOne (events.js:96:13)
    at MuteStream.emit (events.js:188:7)
[error] 
[error] Error: An unexpected error has occurred.
[debug] Error: This socket is closed
    at WriteStream.Socket._writeGeneric (net.js:683:19)
    at WriteStream.Socket._write (net.js:734:8)
    at doWrite (_stream_writable.js:334:12)
    at writeOrBuffer (_stream_writable.js:320:5)
    at WriteStream.Writable.write (_stream_writable.js:247:11)
    at WriteStream.Socket.write (net.js:661:40)
    at Console.log (console.js:43:16)
    at module.exports.UI.onForceClose (C:\Users\i833978\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\inquirer\lib\ui\baseUI.js:35:11)
    at emitOne (events.js:101:20)
    at process.emit (events.js:188:7)
[error] 
[error] Error: An unexpected error has occurred.
[debug] Error: This socket is closed
    at WriteStream.Socket._writeGeneric (net.js:683:19)
    at WriteStream.Socket._write (net.js:734:8)
    at doWrite (_stream_writable.js:334:12)
    at writeOrBuffer (_stream_writable.js:320:5)
    at WriteStream.Writable.write (_stream_writable.js:247:11)
    at WriteStream.Socket.write (net.js:661:40)
    at Console.log (console.js:43:16)
    at process.<anonymous> (C:\Users\i833978\AppData\Roaming\npm\node_modules\firebase-tools\bin\firebase:76:17)
    at emitOne (events.js:101:20)
    at process.emit (events.js:188:7)
 

Tincho

unread,
Nov 19, 2016, 11:25:47 AM11/19/16
to Firebase Google Group
Finally I found the problem.  It is related to an issue with latest node.js version.  Had to downgrade from 7.1.0 to 6.9.1

Larry Reader

unread,
May 4, 2017, 10:23:51 AM5/4/17
to Firebase Google Group
Thanks Tincho I had same problem on firebase login - An unexpected error has occurred - the downgrade fixed it.
Reply all
Reply to author
Forward
0 new messages