7/17 sanity-studio yarn install error

낄낄박사·2024년 7월 17일

Gotcha

목록 보기
2/22

sanity를 사용하기 위해 sanity studio를 설치하고 yarn install 되는 과정에서 에러.

원인

이 오류는 yarn이 현재 디렉토리(sanity-studio)를 최상위 프로젝트 디렉토리로 인식하지 못하고, 상위 디렉토리(/Users/solyipark/Documents/gotcha)를 최상위 프로젝트로 인식해서 발생하는 문제이다.

해결방법

독립된 프로젝트로 설정

sanity-studio를 독립된 프로젝트로 설정하려면, 해당 디렉토리에 빈 yarn.lock 파일을 생성하면 된다.

cd /Users/solyipark/Documents/gotcha/sanity-studio
touch yarn.lock
yarn install

0개의 댓글