반응형
맥 OS 카탈리나(Catalina)부터 터미널이 bash에서 zsh로 변경되었다.
그래서 bash_profile에 Path를 추가해줘도 터미널에서 flutter 명령을 인식 하지 못하는 경우가 생긴다. 🤦🏻♂️
카탈리나 이전과 이후에 따라 설정하는 방법은 각각 다음과 같다.
Before 카탈리나
1. bash_profile 수정
open ~/.bash_profile
vi ~/.bash_profile
2. 설정
// flutter 설치 위치 (flutter SDK 압축을 푼 경로의 bin 폴더까지)
export PATH="$PATH:/Users/stonybean/desktop/Development/flutter/bin"
3. 적용
source ~/.bash_profile
After 카탈리나
1. zshrc 수정
open ~/.zshrc
vi ~/.zshrc
2. 설정
// flutter 설치 위치 (flutter SDK 압축을 푼 경로의 bin 폴더까지)
export PATH="$PATH:/Users/stonybean/desktop/Development/flutter/bin"
3. 적용
source ~/.zshrc
반응형