1. 다운로드 : https://firebase.google.com/docs/cli?authuser=0&hl=ko#install-cli-mac-linux
2. npm 설치
설치전 (/usr/local/bin)
jangwonpark@JANGWONs-MacBook-Air bin % ls
2to3 pip python python3.11-intel64
2to3-3.11 pip3 python3 sandbox-pod
fuzzy_match pip3.11 python3-config xcodeproj
httpclient pod python3-intel64
idle3 pydoc3 python3.11
idle3.11 pydoc3.11 python3.11-config
설치후 (/usr/local/bin)
jangwonpark@JANGWONs-MacBook-Air bin % ls
2to3 node pydoc3 python3.11-config
2to3-3.11 npm pydoc3.11 python3.11-intel64
corepack npx python sandbox-pod
fuzzy_match pip python3 xcodeproj
httpclient pip3 python3-config
idle3 pip3.11 python3-intel64
idle3.11 pod python3.11
3. 최신버전으로 Firebase CLI 업데이트
jangwonpark@JANGWONs-MacBook-Air ~ % sudo npm install -g firebase-tools
sodo로 관리자 권한으로 실행하지 않으면 EACCES permission에러가 난다.
설치후 (/usr/local/bin)
jangwonpark@JANGWONs-MacBook-Air bin % ls
2to3 npm python3
2to3-3.11 npx python3-config
corepack pip python3-intel64
firebase pip3 python3.11
fuzzy_match pip3.11 python3.11-config
httpclient pod python3.11-intel64
idle3 pydoc3 sandbox-pod
idle3.11 pydoc3.11 xcodeproj
node python
Windows에서 설치경로 : C:\Users\Administrator\AppData\Roaming\npm
4. firebase로 로그인 테스트
jangwonpark@JANGWONs-MacBook-Air ~ % firebase login
5. FlutterFire CLI 설치
jangwonpark@JANGWONs-MacBook-Air % dart pub global activate flutterfire_cli
Package flutterfire_cli is currently active at version 0.2.7.
> async 2.11.0 (was 2.10.0)1.8s)
> characters 1.3.0 (was 1.2.1)
cli_util 0.3.5 (0.4.0 available)
intl 0.17.0 (0.18.0 available)
> petitparser 5.3.0 (was 5.1.0)
win32 2.7.0 (4.1.1 available)
Building package executables... (1.5s)
Built flutterfire_cli:flutterfire.
Installed executable flutterfire.
Warning: Pub installs executables into $HOME/.pub-cache/bin, which is not on your path.
You can fix that by adding this to your shell's config file (.bashrc, .bash_profile, etc.):
export PATH="$PATH":"$HOME/.pub-cache/bin"
Activated flutterfire_cli 0.2.7.
~/.pub-cache/에 설치되고
.zshrc 에 경로 추가한다.