• 로그인
  • 장바구니에 상품이 없습니다.

home2 게시판 Flutter 게시판 firebase 설치오류

firebase 설치오류

4 글 보임 - 1 에서 4 까지 (총 4 중에서)
  • 글쓴이
  • #134225

    CHUNGSIN
    참가자
    1. firebase cli 설치 후 로그인 까지 완료 했습니다.
     1
    2. 작업중인 프로젝트 디렉토리로 이동 후 다음 명령어를 실행하였습니다.
    > dart pub global activate flutterfire_cli
    실행 결과는 아래와 같습니다.
    Package flutterfire_cli is currently active at version 1.0.0.
    Downloading packages... .
    The package flutterfire_cli is already activated at newest available version.
    To recompile executables, first run `dart pub global deactivate flutterfire_cli`.
    Installed executable flutterfire.
    Activated flutterfire_cli 1.0.0.
    3. > flutterfire configure -p 프로젝트 아이디를 넣으면 다음과 같은 메시지가 발생합니다.
    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.
    4.  이후 firebase 버전은 정상적으로 확인되어 npm install -g firebase-tools 명령을 실행했으나 다음과 같은 오류가 발생합니다.
    
    > firebase --version
    13.29.0
    > npm install -g firebase-tools
    npm ERR! code 1
    npm ERR! path C:\Users\SAMSUNG\.cache\firebase\tools\node_modules\firebase-tools\node_modules\protobufjs
    npm ERR! command failed
    npm ERR! command C:\Users\SAMSUNG\.cache\firebase\runtime/shell.bat -c -- node scripts/postinstall
    npm ERR! '--'��(��) ���� �Ǵ� �ܺ� ����, ������ �� �ִ� ���α׷�, �Ǵ�
    npm ERR! ��ġ ������ �ƴմϴ�.
    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\SAMSUNG\AppData\Local\npm-cache\_logs24-12-19T06_05_40_217Z-debug-0.log
    시도해 볼 수 있는 다른 방법이 있을지 도움 부탁드립니다. ㅠㅠ
    
    
    
    
    
    
    
    #134234

    codingapple
    키 마스터
    에러메세지가 깨진거같은데 
    C:\Users\SAMSUNG\AppData\Local\npm-cache\_logs24-12-19T06_05_40_217Z-debug-0.log
    들어가서 에러메세지에서 뭐라는지 한번 조회해봅시다
    #134245

    CHUNGSIN
    참가자
    로그파일 에러 내용도 깨져서 확인이 어렵습니다.. ㅠㅠ
    
    3333 info run protobufjs@7.4.0 postinstall node_modules/firebase-tools/node_modules/protobufjs node scripts/postinstall
    3334 info run protobufjs@7.4.0 postinstall { code: 1, signal: null }
    3335 timing reify:rollback:createSparse Compl
    eted in 3162ms
    3336 timing reify:rollback:retireShallow Completed in 0ms
    3337 timing command:install Completed in 23775ms
    3338 verbose stack Error: command failed
    3338 verbose stack     at ChildProcess.<anonymous> (C:\snapshot\firepit\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:63:27)
    3338 verbose stack     at ChildProcess.emit (node:events:537:28)
    3338 verbose stack     at maybeClose (node:internal/child_process:1091:16)
    3338 verbose stack     at ChildProcess._handle.onexit (node:internal/child_process:302:5)
    3339 verbose pkgid protobufjs@7.4.0
    3340 verbose cwd C:\Users\SAMSUNG\Documents\calendar_v1
    3341 verbose Windows_NT 10.0.22631
    3342 verbose node v18.5.0
    3343 verbose npm  v8.19.4
    3344 error code 1
    3345 error path C:\Users\SAMSUNG\.cache\firebase\tools\node_modules\firebase-tools\node_modules\protobufjs
    3346 error command failed
    3347 error command C:\Users\SAMSUNG\.cache\firebase\runtime/shell.bat -c -- node scripts/postinstall
    3348 error '--'  (  )       Ǵ   ܺ      ,            ִ     α׷ ,  Ǵ 
    3348 error   ġ         ƴմϴ .
    3349 verbose exit 1
    3350 timing npm Completed in 23888ms
    3351 verbose unfinished npm timer reify 1734588340321
    3352 verbose unfinished npm timer reify:build 1734588359797
    3353 verbose unfinished npm timer build 1734588359799
    3354 verbose unfinished npm timer build:deps 1734588359800
    3355 verbose unfinished npm timer build:run:postinstall 1734588360674
    3356 verbose unfinished npm timer build:run:postinstall:node_modules/firebase-tools/node_modules/protobufjs 1734588360674
    3357 verbose code 1
    3358 error A complete log of this run can be found in:
    
     2
    
    
    • 이 답변은 CHUNGSIN에 의해 7 월, 2 주 전에 수정됐습니다.
    #134261

    codingapple
    키 마스터
    nodejs를 22버전으로 설치하고 powershell을 관리자권한으로 열어서 시도해봅시다
4 글 보임 - 1 에서 4 까지 (총 4 중에서)
  • 답변은 로그인 후 가능합니다.

About

현재 월 700명 신규수강중입니다.

  (09:00~20:00) 빠른 상담은 카톡 플러스친구 코딩애플 (링크)
  admin@codingapple.com
  이용약관, 개인정보처리방침
ⓒ Codingapple, 강의 예제, 영상 복제 금지
top

© Codingapple, All rights reserved. 슈퍼로켓 에듀케이션 / 서울특별시 강동구 고덕로 19길 30 / 사업자등록번호 : 212-26-14752 온라인 교육학원업 / 통신판매업신고번호 : 제 2017-서울강동-0002 호 / 개인정보관리자 : 박종흠