[debug] ---------------------------------------------------------------------- [debug] Command: /home/kristoffer/.nvm/versions/node/v7.7.2/bin/node /home/kristoffer/.nvm/versions/node/v7.7.2/bin/firebase init function [debug] CLI Version: 3.5.0 [debug] Platform: linux [debug] Node Version: v7.7.2 [debug] Time: Sat Mar 11 2017 08:58:03 GMT+0100 (CET) [debug] ---------------------------------------------------------------------- [debug] [debug] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase"] [info] ######## #### ######## ######## ######## ### ###### ######## ## ## ## ## ## ## ## ## ## ## ## ###### ## ######## ###### ######## ######### ###### ###### ## ## ## ## ## ## ## ## ## ## ## ## #### ## ## ######## ######## ## ## ###### ######## You're about to initialize a Firebase project in this directory: /home/kristoffer/dev/firebase-functions-test [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] >>> HTTP REQUEST GET https://admin.firebase.com/v1/projects Sat Mar 11 2017 08:58:03 GMT+0100 (CET) [debug] <<< HTTP RESPONSE 200 [info] === Function Setup [debug] TypeError: features[nextFeature] is not a function at init (/home/kristoffer/.nvm/versions/node/v7.7.2/lib/node_modules/firebase-tools/lib/init/index.js:14:46) at /home/kristoffer/.nvm/versions/node/v7.7.2/lib/node_modules/firebase-tools/lib/init/index.js:15:14 at tryCatch (/home/kristoffer/.nvm/versions/node/v7.7.2/lib/node_modules/firebase-tools/node_modules/rsvp/dist/rsvp.js:539:12) at invokeCallback (/home/kristoffer/.nvm/versions/node/v7.7.2/lib/node_modules/firebase-tools/node_modules/rsvp/dist/rsvp.js:554:13) at publish (/home/kristoffer/.nvm/versions/node/v7.7.2/lib/node_modules/firebase-tools/node_modules/rsvp/dist/rsvp.js:522:7) at flush (/home/kristoffer/.nvm/versions/node/v7.7.2/lib/node_modules/firebase-tools/node_modules/rsvp/dist/rsvp.js:2374:5) at _combinedTickCallback (internal/process/next_tick.js:73:7) at process._tickCallback (internal/process/next_tick.js:104:9) [error] [error] Error: An unexpected error has occurred.