[yarn dev 오류] /bin/sh: next: command not found

이주희·2022년 3월 31일
0

ERROR

목록 보기
2/14


💡Why?
next가 설치되어있지 않다는 뜻이다!
node.modules 폴더에 파일이 install 되어있지 않은 경우 발생한다.

node.modules 폴더에 파일이 없는 경우는
1. node.modules를 지운 경우
2. git에서 pull 받은 경우(node.modules 파일은 .gitignore에 들어있어서 git에 없다.)


💡 해결 방법
해당 디렉토리 터미널에서 yarn install 입력해서 패키지를 다운로드 받은 후에 다시 yarn dev하면 서버가 잘 실행된다~!

profile
🍓e-juhee.tistory.com 👈🏻 이사중

0개의 댓글