Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to fix yarn.lock and package-lock json mix

So i was going on with my nodejs project and was trying to install a package with npm, but it got stuck in the process. I found I could use yarn which i, the very next second, did. It worked, but now im trying to host it on Heroku and I have both, package-lock.json and yarn.lock. If i delete any, the dependencies get outdated. how can i fix this?

My dependencies: express, passport,mongoose,ejs

I tried and searched the web for a while but nothing seemed to help me.

like image 545
MasterMind Avatar asked Dec 12 '25 12:12

MasterMind


1 Answers

Just do yarn install and it will install all the dependencies again with updating the yarn.lock. And then you can delete package-lock.json.

like image 84
MasterMind Avatar answered Dec 15 '25 08:12

MasterMind



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!