[에러 일지] Heroku - "Push rejected, failed to compile Node.js app...."

nemo·2022년 2월 18일
0

에러 일지

목록 보기
5/26
remote: -----> Build failed
remote:        
remote:        We're sorry this build is failing! You can troubleshoot common issues here:
remote:        https://devcenter.heroku.com/articles/troubleshooting-node-deploys
remote:        
remote:        Some possible problems:
remote:        
remote:        - Node version not specified in package.json
remote:          https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
remote:        
remote:        Love,
remote:        Heroku
remote:        
remote:  !     Push rejected, failed to compile Node.js app.
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !       Push rejected to nemo-movie-app.
remote: 
To https://git.heroku.com/...
 ! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/...'

heroku buildpacks 명령어로 buildpack이 설치되어 있는지 확인해본다. Node.js buildpack이 뜨지 않는다면 설치가 되지 않은 것.
해당 애플리케이션의 Settings로 들어가 Buildpacks 섹션으로 간다.


Add buildpacks를 클릭한 다음, nodejs로 선택하고 저장하면 된다.

0개의 댓글