오류 메시지
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"
문제 상황
https://firebase.google.com/docs/flutter/setup?hl=ko&platform=ios
공식 문서를 따라 Flutter 앱에 Firebase를 추가하려, Flutter CLI를 설치하고, 명령어로 FlutterFire CLI를 설치 후
$ flutterfire configure
를 입력하니 뜨는 문제. FIutterFire CLI 설치 시 경로 설정이 되지 않은 듯 하다.
해결
터미널(iterm 2)에서
$ open ~/.zshrc
를 입력해 .zshrc 파일을 열고,
export PATH="$PATH":"$HOME/.pub-cache/bin"
를 한 줄 입력 후 저장.
이후
$ source ~/.zshrc
를 입력해 변경된 zshrc파일 적용.
다시 flutterfire configure 명령어를 입력해 보면 잘 작동한다.
만약 zshell(iterm2)를 사용하지 않고 일반 터미널을 사용 중이라면,
방식은 동일하게, .bash_profile 파일에 입력해주고 적용하면 된다.
.bash_profile 파일이 존재하지 않는다면,
$ touch ~/.bash_profile
로 생성해 준 후 그대로 따라하기.