220v
젝무의 개발새발
220v
전체 방문자
오늘
어제
  • 분류 전체보기 (255)
    • AI (35)
      • ML, DL 학습 (30)
      • 논문 리뷰 (4)
      • 실습 및 프로젝트 (1)
    • Algorithm (145)
      • LeetCode (13)
      • 프로그래머스 (35)
      • 백준 (96)
      • 알고리즘, 문법 정리 (1)
    • Mobile, Application (17)
      • Flutter (10)
      • iOS, MacOS (7)
    • BackEnd (7)
      • Flask (1)
      • Node.js (5)
      • Spring, JSP..etc (1)
    • Web - FrontEnd (18)
      • JavaScript, JQuery, HTML, C.. (12)
      • React (6)
    • DataBase (1)
      • MySQL (1)
      • Firebase Firestore (0)
      • Supabase (0)
    • Git (1)
    • 기타 툴 및 오류 해결 (3)
    • 강의 (5)
      • Database (3)
      • 암호학 (2)
      • 알고리즘 (0)
    • 후기와 회고 (2)
    • 블로그 꾸미기 (1)
    • 일상과 이것저것 (20)
      • 맛집 (12)
      • 세상사는일 (4)
      • 도서리뷰 (1)
      • 이런저런 생각들 (잡글) (3)

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

인기 글

태그

  • BFS
  • 티스토리챌린지
  • Minimum Spanning Tree
  • dp
  • 백준
  • two pointer
  • 위상 정렬
  • disjoint set
  • simulation
  • Greedy
  • 오블완
  • brute-Force
  • Mathematics
  • Priority Queue
  • bitmasking
  • Lis
  • 구현
  • 다익스트라
  • top-down
  • REACT
  • Prefix Sum
  • topological sort
  • union-find
  • 프로그래머스
  • dfs
  • implementation
  • IMPLEMENT
  • binary search
  • Dynamic Programming
  • Backtracking

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
220v

젝무의 개발새발

Mobile, Application/Flutter

[Flutter, Firebase] Pub installs executables into $HOME/.pub-cache/bin 에러 (Firebase CLI)

2022. 9. 6. 17:22

오류 메시지

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 추가

Google은 흑인 공동체를 위한 인종적 평등을 추구하기 위해 노력하고 있습니다. 자세히 알아보기 의견 보내기 Flutter 앱에 Firebase 추가 plat_ios plat_android plat_web iOS+ Android 웹 기본 요건 아직 Flutter 앱

firebase.google.com

공식 문서를 따라 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

로 생성해 준 후 그대로 따라하기.

    'Mobile, Application/Flutter' 카테고리의 다른 글
    • [Flutter] Container 안에서 이미지 사이즈 원하는대로 조정하기
    • [Flutter, Firebase] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly": 에러 (M1 Mac 환경)
    • [Flutter, Figma] Figma 와이어프레임 Flutter 화면으로 변환하기 - Figma to Flutter
    • [Flutter] cmdline-tools component is missing 오류
    220v
    220v
    DGU CSE 20 / Apple Developer Academy @ POSTECH 2nd Jr.Learner.

    티스토리툴바