firebase-tools: firebase deploy unexpected error EPIPE
Same issue: #1236 but I thought I’d reopen this with my info.
[REQUIRED] Environment info
firebase-tools: 7.0.1
Platform: Windows
[REQUIRED] Test case
firebase init
with default settings and an existing Firebase project
[REQUIRED] Steps to reproduce
$ firebase init
in an empty directory; choose an existing Firebase project, leave all settings at default$ firebase deploy
[REQUIRED] Expected behavior
Should successfully deploy.
[REQUIRED] Actual behavior
Run with --debug
[2019-06-22T13:16:14.655Z] ----------------------------------------------------------------------[2019-06-22T13:16:14.660Z] Command: C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\firebase-tools\lib\bin\firebase.js deploy --debug
[2019-06-22T13:16:14.661Z] CLI Version: 7.0.1
[2019-06-22T13:16:14.661Z] Platform: win32
[2019-06-22T13:16:14.661Z] Node Version: v10.16.0
[2019-06-22T13:16:14.663Z] Time: Sat Jun 22 2019 15:16:14 GMT+0200 (GMT+02:00)
[2019-06-22T13:16:14.664Z] ----------------------------------------------------------------------
[2019-06-22T13:16:14.677Z] > 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"]
[2019-06-22T13:16:14.680Z] > authorizing via signed-in user[2019-06-22T13:16:14.681Z] [iam] checking project (project name) for permissions ["cloudfunctions.functions.create","cloudfunctions.functions.delete","cloudfunctions.functions.get","cloudfunctions.functions.list","cloudfunctions.functions.update","cloudfunctions.operations.get","firebase.projects.get"][2019-06-22T13:16:14.684Z] > 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"]
[2019-06-22T13:16:14.685Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token
<request body omitted>[2019-06-22T13:16:14.903Z] <<< HTTP RESPONSE 200 content-type=application/json; charset=utf-8, vary=X-Origin, Referer, Origin,Accept-Encoding, date=Sat, 22 Jun 2019 13:16:13 GMT, server=scaffolding on HTTPServer2, cache-control=private, x-xss-protection=0, x-frame-options=SAMEORIGIN, x-content-type-options=nosniff, alt-svc=quic=":443"; ma=2592000; v="46,44,43,39", accept-ranges=none, transfer-encoding=chunked
[2019-06-22T13:16:14.910Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/(project name):testIamPermissions permissions=[cloudfunctions.functions.create, cloudfunctions.functions.delete, cloudfunctions.functions.get, cloudfunctions.functions.list, cloudfunctions.functions.update, cloudfunctions.operations.get, firebase.projects.get][2019-06-22T13:16:15.874Z] <<< HTTP RESPONSE 200 content-type=application/json; charset=UTF-8, vary=X-Origin, Referer, Origin,Accept-Encoding, date=Sat, 22 Jun 2019 13:16:14 GMT, server=ESF, cache-control=private, x-xss-protection=0, x-frame-options=SAMEORIGIN, x-content-type-options=nosniff, server-timing=gfet4t7; dur=823, alt-svc=quic=":443"; ma=2592000; v="46,44,43,39", accept-ranges=none, transfer-encoding=chunked
[2019-06-22T13:16:15.935Z] SyntaxError: Unexpected token in JSON at position 0
at JSON.parse (<anonymous>) in JSON at position 0
at JSON.parse (<anonymous>)
at Socket.<anonymous> (C:\nvm\v10.16.0\node_modules\firebase-tools\lib\checkFirebaseSDKVersion.js:24:31)
at Socket.emit (events.js:198:13)
at Socket.EventEmitter.emit (domain.js:448:20)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at Pipe.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
Error: An unexpected error has occurred.
/d/temp/firebase-bug $ npm ERR! code EPIPE
npm ERR! errno EPIPE
npm ERR! syscall write
npm ERR! EPIPE: broken pipe, write
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\(my username)\AppData\Roaming\npm-cache\_logs\2019-06-22T13_16_16_548Z-debug.log
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 18 (4 by maintainers)
I tried running
npm outdated firebase-tools
in the/functions
subdirectory as well asnpm outdated -g
with and without--json=true
and all output nothing. That might be the source of the problem.Node version: 10.16.0 npm version: 6.9.0
Yes, it’s a clean project I created.