오류
# yarn start
sass 관련한 오류가 발생함 오류 로그는 없음!
# yarn install
make: *** [Release/obj.target/binding/src/binding.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/whydda/workspace/knowtil.us.deploy/emanbae_web/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (node:events:511:28)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)
gyp ERR! System Darwin 22.3.0
gyp ERR! command "/opt/homebrew/Cellar/node/20.1.0/bin/node" "/Users/whydda/workspace/knowtil.us.deploy/emanbae_web/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/whydda/workspace/knowtil.us.deploy/emanbae_web/node_modules/node-sass
gyp ERR! node -v v20.1.0
그래서 문제점이 무엇일까? 프론트 개발자에게 도움을 요청
아무래도 버전 문제 같고 현재 사용하는 버전을 맞춰 보기로 했다.
그리고 비슷한 상황을 해결한 블로그 발견 !
# 버전 설치
brew로 원하는 버전을 설치하려 했지만 실패
# 바드에게 도움을 요청
node -v 를 입력하니
정상적으로 v16.14.0 로 변경되었다.
react 프로젝트로 돌아가
# yarn install
# yarn start
정상적으로 애플리케이션이 실행된다.
해결!
버전 문제 발생 시 nvm을 통한 버전 스위칭으로 해결!
'실전 트러블 슈팅(Trouble Shooting)' 카테고리의 다른 글
Intellij 캐시 삭제 (0) | 2022.01.19 |
---|