프로젝트를 클론하고 yarn install을 하니..
gyp verb find Python Python is not set from command line or npm configuration
gyp verb find Python Python is not set from environment variable PYTHON
gyp verb find Python checking if "python3" can be used
gyp verb find Python - executing "python3" to get executable path
gyp verb find Python - "python3" is not in PATH or produced an error
gyp verb find Python checking if "python" can be used
gyp verb find Python - executing "python" to get executable path
gyp verb find Python - "python" is not in PATH or produced an error
gyp ERR! find Python
gyp ERR! find Python Python is not set from command line or npm configuration
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if "python3" can be used
gyp ERR! find Python - "python3" is not in PATH or produced an error
gyp ERR! find Python checking if "python" can be used
gyp ERR! find Python - "python" is not in PATH or produced an error
gyp ERR! find Python
이런 에러가 생김
대충 보니 node-sass가 node-gyp을 이용하는데 node-gyp는 python을 이용하는 상황
먼저 node-gyp을 깔아줌
npm install -g node-gyp
brew를 통해 python도 깔아줌
brew install python
xcode-select가 설치되어 있지 않다면 이것도 깔아줌
xcode-select --install
.zshrc에 환경변수를 추가해줌
#경로는 본인 컴퓨터 환경에 따라 다름
alias python=/usr/bin/python3
환경변수 내용이 바뀌었으니 업데이트 해줌
source ~/.zshrc
다시 yarn install을 해줌