Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

onurzdgn's avatar

Digital Ocean App Platform

Hello everyone. I have Laravel 10 project and I try deploy from Digital Ocean App Platform. I use only Laravel, no Livewire or no npm. However Digital Ocean want package-lock.json or it can't deploy

0 likes
4 replies
shariff's avatar

By default there will be package.lock.json file. If you have deleted that file just run npm install or npm run build the package.lock.json file will be created.

onurzdgn's avatar

@shariff I create new project with composer create-project laravel/laravel example-app and there is no package.lock.json

martinbean's avatar

@onurzdgn But surely you want NPM packages installed and Vite running as part of your deployment to build assets, otherwise you’re going to end up with no CSS/JavaScript.

Please or to participate in this conversation.