Skip to content

Deploy to Heroku fails due to multiple package lockfiles #63

Open

Description

@berezovskyi
-----> 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

Activity

  1. andrewssobral commented on Jun 23, 2023

    @andrewssobral

    Same for me, any solution? thanks

    -----> 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
    
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions