BUILD FAILED despite stating correct start command

I have a ready made e-commerce app built with MERN stack, already separated my backend from frontend and I’m trying to host the backend folder on render but build keeps failing for npm command despite specifying “npm run server.js” in start command.

I would make sure that the node version in the development machine is the same as the one on the server.

Hey,

Your current build command is set to “npm”, which is insufficient. You should include “npm install” or “npm run build” in your build command or both using the command “npm install && npm run build”

Jérémy.
Render Support, UTC+3

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.