maker0927
170
2020-04-10 14:42:35
1
208

heroku 배포 관련 문제 질문입니다.


'git push heroku master'를 실행하니 이런 에러가 뜹니다. 구글링을 해서 문제를 해결하려고 했으나

잘 안되서 질문드립니다.


<에러 로그>

$ git push heroku master
Enumerating objects: 141, done.
Counting objects: 100% (141/141), done. 
Delta compression using up to 16 threads
Compressing objects: 100% (138/138), done.
Writing objects: 100% (141/141), 384.05 KiB | 5.91 MiB/s, done.
Total 141 (delta 74), reused 0 (delta 0), pack-reused 0        
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Node.js app detected
remote: 
remote: -----> Build failed
remote:  !     Two different lockfiles found: package-lock.json and yarn.lock
remote:
remote:        Both npm and yarn have created lockfiles for this application,
remote:        but only one can be used to install dependencies. Installing
remote:        dependencies using the wrong package manager can result in missing
remote:        packages or subtle bugs in production.
remote:
remote:        - To use npm to install your application's dependencies please delete
remote:          the yarn.lock file.
remote:
remote:          $ git rm yarn.lock
remote:
remote:        - To use yarn to install your application's dependences please delete
remote:          the package-lock.json file.
remote:
remote:          $ git rm package-lock.json
remote:
remote:        https://help.heroku.com/0KU2EM53
remote:
remote:  !     Push rejected, failed to compile Node.js app.
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !       Push rejected to openmanage.
remote:
To https://git.heroku.com/openmanage.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/openmanage.git'


0
  • 답변 1

  • 흔한개발자지망생
    34
    2020-04-10 15:43:09

    npm이나 yarn 하나만 쓸수 있는거기 때문에 둘중 하나의 lock파일을 지우라는것같네요

  • 로그인을 하시면 답변 을 등록할 수 있습니다.