Firebase-tools: firebase init function gives Error: An unexpected error has occurred.

Created on 11 Mar 2017  ·  4Comments  ·  Source: firebase/firebase-tools

When running firebase init function I can choose a project and then the script crashes.

I have tried on Node 6.10, 7.5, 7.7 with firebase-tools global install and local install.
There is no difference if I choose a default project or not.

Attaching the error log:
firebase-debug.txt

Most helpful comment

Are you missing an s?

firebase init functions

On Sat, Mar 11, 2017, 12:02 AM Kristoffer Högberg notifications@github.com
wrote:

When running firebase init function I can choose a project and then the
script crashes.

I have tried on Node 6.10, 7.5, 7.7 with firebase-tools global install and
local install.

Attaching the error log:
firebase-debug.txt
https://github.com/firebase/firebase-tools/files/835600/firebase-debug.txt


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/firebase/firebase-tools/issues/273, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AAAD_mGVgIltveYpRevncvucKJD7qyXfks5rklUwgaJpZM4MaI0X
.

All 4 comments

Are you missing an s?

firebase init functions

On Sat, Mar 11, 2017, 12:02 AM Kristoffer Högberg notifications@github.com
wrote:

When running firebase init function I can choose a project and then the
script crashes.

I have tried on Node 6.10, 7.5, 7.7 with firebase-tools global install and
local install.

Attaching the error log:
firebase-debug.txt
https://github.com/firebase/firebase-tools/files/835600/firebase-debug.txt


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/firebase/firebase-tools/issues/273, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AAAD_mGVgIltveYpRevncvucKJD7qyXfks5rklUwgaJpZM4MaI0X
.

@mbleigh Thanks for answering.
Such a dumb mistake by me :smile:

I was fooled by this part in the log:
=== Function Setup
Made it seem like it was starting the function init

write firebase init functions instead of firebase init function

@azat99 Thanks for the response.
This issue was already closed with that solution 6 month ago =)

Was this page helpful?
0 / 5 - 0 ratings