firebase-tools icon indicating copy to clipboard operation
firebase-tools copied to clipboard

Unexpected error occur when firebase login with Nodejs 7.1.0

Open paradigmist opened this issue 10 years ago • 7 comments

running firebase login --debug on nodejs 7.1.0, windows 10, firebase CLI 3.1.0

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: An unexpected error has occurred.
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\FONG\AppData\Roaming\npm\node_modules\firebase-tools\bin\firebase:76:17)
    at emitOne (events.js:101:20)
    at process.emit (events.js:188:7)

Error: An unexpected error has occurred.

paradigmist avatar Nov 11 '16 08:11 paradigmist

Also having this issue on Windows, nodejs 7.10, firebase CLI 3.1.0

dannysuryadi avatar Nov 12 '16 16:11 dannysuryadi

Solution has been found? And tried but could not solve it

Node.js v7.1.0 Firebase CLI v3.2.0

dav3Ku-zz avatar Nov 25 '16 05:11 dav3Ku-zz

I am also having this issue Win 10, firebase CLI 3.2.0. After repeated attempts I got it to work. But it seems very inconsistent.

towlebooth avatar Nov 26 '16 15:11 towlebooth

I was having the same problem. Downgrade node to 6.9.1 fix it

maurodaprotis avatar Nov 27 '16 21:11 maurodaprotis

So it's colleagues, it's a detail in Node.JS v7.1.0 ... I've managed to make it run degraded to v6.9.1

dav3Ku-zz avatar Nov 29 '16 07:11 dav3Ku-zz

Node 7.9 resolved this for me

https://github.com/nodejs/node/issues/9542

628426 avatar Apr 17 '17 03:04 628426

If it was a Node.js issue, I'm going to consider this closed. Please re-open if you feel there's something to be done on our end.

mbleigh avatar Apr 17 '17 18:04 mbleigh