-
글쓴이글
-
2022년 2월 14일 23:41 #27297
Chris참가자강의 내용 대로 firebase에 프로젝트 생성. 파이어베이스패키지 다 설치 하고 flutterfire configure 실행하면 아래와 같은 에러가 나오며 실행이 되지 않습니다.
> flutterfire configure
i Found 0 Firebase projects.
FirebaseCommandException: An error occured on the Firebase CLI when attempting to run a command.
COMMAND: firebase --version
ERROR: The FlutterFire CLI currently requires the official Firebase CLI to also be installed, see https://firebase.google.com/docs/cli#install_the_firebase_cli for how to install it.프로젝트 3개 생성되어있는대 나타나지 않습니다.
flutterfire cli 설치 되었고 공홈에서 firebase-tools-instant-win.exe 도 설치후 실행했습니다만 계속 동일한 문제가 발생해서 진행이 되지 않습니다. stack overflow에서 검색해보고 동일 증상 해결 방법 적용도 해봤는대 해결이 안되네요. 오늘 하루종일 이 문제 해결이 안되어서 답답해 죽겠습니다. 도움 부탁 드립니다.
2022년 2월 15일 09:47 #27319
codingapple키 마스터firebase-tools-instant-win.exe 를 firebase.exe로 이름바꾸고 작업폴더에 넣고
에디터에서 터미널 열어서 firebase login 쳐봅시다
2022년 2월 15일 10:18 #27330
Chris참가자저도 stack overflow에서 확인 하여 말씀하신 방법 이미 사용해 보았는대 로그인 후 flutterfire configure 실행하면 fetching 중에 아래와 같이 에러 나왔습니다.
D:\coding_study\Flutter_Study\coding_apple_insta_0209>flutterfire configure
⠋ Fetching available Firebase projects...
Unhandled exception:
FormatException: Unexpected character (at character 1)
#
^#0 _ChunkedJsonParser.fail (dart:convert-patch/convert_patch.dart:1405:
5)
#1 _ChunkedJsonParser.parseNumber (dart:convert-patch/convert_patch.dar
t:1272:9)
#2 _ChunkedJsonParser.parse (dart:convert-patch/convert_patch.dart:937:
22)
#3 _parseJson (dart:convert-patch/convert_patch.dart:40:10)
#4 JsonDecoder.convert (dart:convert/json.dart:612:36)
#5 runFirebaseCommand (package:flutterfire_cli/src/firebase.dart:95:25)
<asynchronous suspension>
#6 getProjects (package:flutterfire_cli/src/firebase.dart:114:7)
<asynchronous suspension>
#7 ConfigCommand._selectFirebaseProject (package:flutterfire_cli/src/co
mmands/config.dart:159:24)
<asynchronous suspension>
#8 ConfigCommand.run (package:flutterfire_cli/src/commands/config.dart:
227:37)
<asynchronous suspension>
#9 CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
#10 main (file:///C:/Users/WORK/AppData/Local/Pub/Cache/hosted/pub.dartl
ang.org/flutterfire_cli-0.1.1+2/bin/flutterfire.dart:34:5)
<asynchronous suspension>
2022년 2월 15일 13:08 #27349
codingapple키 마스터https://github.com/invertase/flutterfire_cli/issues/37
pubspec 파일에 오타가 있거나 version 항목이 이상하면 그런 이슈가 있나봅니다 이것저것 바꿔봅시다
-
글쓴이글
- 답변은 로그인 후 가능합니다.