Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Build for ejs: ERR missing script build (npm run build)

I’m trying to build my .ejs to deploy it but for ‘npm run build’ it says: npm ERR! Missing script: "build" I tryied a lot of lines in my package.json like this one:

"scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "build": "echo 'build script executed'"
  },

I don’t know which is the correct script to build my ejs. I know that for react is "build": "react-scripts build", but i dont know how it is for that other case.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

I think you are mixing concepts, you dont actually need any build script if you are building a node express application

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading