In production you should use npm run build
What happens when you do?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I deployed laravel project and I have this error because of my bootstrap registration: Run npm run dev in your terminal and refresh the page. The problem is that I can't use that command with an already deployed project and I also wasn't successful in installing npm too. How Can I fix it? This is my first time deploying a project so it's all new to me. I read that I should delete package-lock.json then reinstall via npm install before deploying a project. But it did nothing for me.
@Ilya_user ok. You can ask them if try can enable/install it. If not, you need to run it locally and upload /public/build
Please or to participate in this conversation.