강의

멘토링

커뮤니티

인프런 커뮤니티 질문&답변

YouFive님의 프로필 이미지
YouFive

작성한 질문수

비전공자를 위한 진짜 입문 올인원 개발 부트캠프

Fly.io 에 그랩마켓 서버 배포하기

! [remote rejected] main -> main (pre-receive hook declined),error: failed to push some refs to 오류가 뜨네요...

작성

·

339

1

heroku 빌드로그 보면
-----> Build
       Running build
       
       > fiveserver@0.1.0 build /tmp/build_b99169be
       > react-scripts build
       
       Could not find a required file.
         Name: index.html
         Searched in: /tmp/build_b99169be/public
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! fiveserver@0.1.0 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the fiveserver@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /tmp/npmcache.U7Rlz/_logs/2021-10-25T13_39_03_674Z-debug.log
-----> Build failed
       
       We're sorry this build is failing! You can troubleshoot common issues here:
       https://devcenter.heroku.com/articles/troubleshooting-node-deploys
       
       Some possible problems:
       
       - Node version not specified in package.json
         https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
       
       Love,
       Heroku
       
 !     Push rejected, failed to compile Node.js app.
 !     Push failed

이렇게 나와있어요 진짜 며칠 째 고생 중이네요 ㅠㅠ

답변 1

0

그랩님의 프로필 이미지
그랩
지식공유자

package.json 소스코드는 어떻게 되어있나요~?

강의와 진행하신 부분이랑 차이는 없었나요?

YouFive님의 프로필 이미지
YouFive
질문자

ㅎㅎ헤로쿠 삭제하고 다시 만들어서 해결했습니다!!

YouFive님의 프로필 이미지
YouFive

작성한 질문수

질문하기