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

afoysal's avatar

How to run `npm run build`

I am working in a VueJS application. I would like to deploy the application in a cPanel. I am trying to run npm run build. I am getting below error.

https://ibb.co/0Qn30TX

If I run npm run command I am getting below result.

https://ibb.co/Xp9bdDp

How can I run npm run build ?

0 likes
1 reply
rodrigo.pedra's avatar

Well, your pakage.json file has no build command defined in its scripts key.

Maybe you are looking an old tutorial?

Try:

npm run dev

Locally when you are developing. Or:

npm run prod

When you are building for production or deployment.

1 like

Please or to participate in this conversation.