You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deploy to Heroku fails due to multiple package lockfiles #63
-----> Build failed
! Two different lockfiles found: package-lock.json and yarn.lock
Both npm and yarn have created lockfiles for this application,
but only one can be used to install dependencies. Installing
dependencies using the wrong package manager can result in missing
packages or subtle bugs in production.
- To use npm to install your application's dependencies please delete
the yarn.lock file.
$ git rm yarn.lock
- To use yarn to install your application's dependences please delete
the package-lock.json file.
$ git rm package-lock.json
https://help.heroku.com/0KU2EM53
-----> Building on the Heroku-22 stack
-----> Using buildpacks:
1. https://github.com/alex88/heroku-buildpack-vips
2. https://github.com/heroku/heroku-buildpack-nodejs
-----> VIPS app detected
-----> Installing libvips
Downloading libvips and unpacking
libvips installed
-----> Node.js app detected
-----> Build failed
! Two different lockfiles found: package-lock.json and yarn.lock
Both npm and yarn have created lockfiles for this application,
but only one can be used to install dependencies. Installing
dependencies using the wrong package manager can result in missing
packages or subtle bugs in production.
- To use npm to install your application's dependencies please delete
the yarn.lock file.
$ git rm yarn.lock
- To use yarn to install your application's dependencies please delete
the package-lock.json file.
$ git rm package-lock.json
https://help.heroku.com/0KU2EM53
! Push rejected, failed to compile Node.js app.
! Push failed
Activity
andrewssobral commentedon Jun 23, 2023
Same for me, any solution? thanks