Do you have package-json.lock ?
Is it in your repository? Do you have it locally ? Is it necessary to compile assets on deployment?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi,
I am trying to deploy a Laravel app on Digital Ocean through git. As it starts deploying I get to the point where: parsing package.json no file to start the server and then get an error which says package-lock.json does not exist.
I would highly appreciate it if anyone could help.
Please, see the error log:
https://i.ibb.co/nkrRrLN/a.png
Thank you!
@tudosm so the issue is because you use different versions of npm on your local environment than on the production.
npm -v will tell you which version you use locally, so upgrade whichever uses older version.
Please or to participate in this conversation.