[Docker] /bin/sh: 1: nest: not found

홍예림·2023년 3월 6일
0

내가 만난 에러

목록 보기
3/10

에러

docker-compose -f docker-compose.prod.yaml build
 > [7/7] RUN yarn build:                                                                                                                                                                                                         
#0 1.104 yarn run v1.22.19                                                                                                                                                                                                       
#0 1.211 $ rimraf dist                                                                                                                                                                                                           
#0 1.875 $ nest build                                                                                                                                                                                                            
#0 1.902 /bin/sh: 1: nest: not found
#0 1.939 error Command failed with exit code 127.
#0 1.939 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

해결방법

package.json 파일에서 네스트 버전정보("@nestjs/cli": "^9.0.0" )를 devDependencies에서 dependencies로 옮겼다

profile
SYNC 5반 2023.07 - 2023.12

0개의 댓글