The FlutterFire CLI tool internally calls out to the Firebase CLI (to get a list of projects, in your case) and expects a JSON response. Somehow the output in your case has an extra line in front of it:
Active code page: 1252
I tried to reproduce the output, but when I run this command on Firebase CLI version 13.29.1 (the latest version as of this writing):
% firebase --version
13.29.1
% firebase projects:list --json
I get this output:
✔ Preparing the list of your Firebase projects
{
"status": "success",
"result": [
{
"projectId": "basegv-e9065",
"projectNumber": "312648983577",
"displayName": "basegv",
"name": "projects/basegv-e9065",
"resources": {
"hostingSite": "basegv-e9065"
},
"state": "ACTIVE",
"etag": "1_42703802-0149-45b1-9264-7b9b9434f0b1"
},
...
]
}
Note that this does not include the extra line that you get (and which makes the output invalid JSON). Unfortunately I don't see in the code of the Firebase CLI where this output may come from.
You'll want to see if you can reproduce the output, and if so, file a bug on either the Firebase CLI repo or the FlutterFire CLI repo.
Note that the issue was also posted on /r/Firebase a couple of months ago, so it seems to not be new (and thus likely only happens to a subset of the users of these tools).
flutterfirecalls thefirebasecommand to get a list of projects. You might want to see if you can reproduce this output with just thefirebasecommand, and if so: file an issue on the GitHub repo for that project (as the output is not valid JSON).