If you don't have the build script you should not need it.
What package did you installed taht ask u run this cde?
Maybe npm audit or doctor can give you some trick if st worked false before ...
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Im trying to runnpm run build but I get an error:
λ npm run build
npm ERR! missing script: build
These are the scripts inside of package.json and guess what, no "build",
"scripts": {
"dev": "npm run development",
"development": "mix",
"watch": "mix watch",
"watch-poll": "mix watch -- --watch-options-poll=1000",
"hot": "mix watch --hot",
"prod": "npm run production",
"production": "mix --production"
},
According to this question: https://stackoverflow.com/questions/61516683/npm-run-build-missing-script , that is where you set it up but I just wanted to be 100% sure because I sincerely don't know how that stuff works and I don't want to break or mis-configure something I won't be able to repair later. Thanks!
PLUS: In the question that person uses some files im not familiar with, for example "app.tsx":
"build": "webpack-cli app.tsx --config webpack-config.js"
I'm not familiar with Laragon, but it looks like it's using node version 12... Node is currently using 14.16.1 as it's current LTS.
Could it be that the Laragon version you are using may need to be updated to a newer version?
...
Also, build is usually tied to a webpack config file. Are you using React or something that needs to have a build process with webpack/babel or something?
App.tsx is a TypeScript file. It's generally the entry point to a single page app that is built with something like React and written with TypeScript instead of regular JavaScript.
Please or to participate in this conversation.