When setting up a new Hyvä project, you may see the error npm error Missing script: “build-prod” in the CLI while running the npm build command.
The cause is that newer Hyvä versions replaced the old build-prod script. Hyvä 1.1.x nutzt noch build-prod, while newer Hyvä versions use build. Your npm build command might look like this:
|
1 |
npm --prefix app/design/frontend/Vendor/hyva_child/web/tailwind run build |
Fixing npm error: Missing script ‘build-prod’
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.