I have problem in depolying repo


{
“name”: “mern-estate”,
“version”: “1.0.0”,
“description”: “”,
“main”: “index.js”,
“type”: “module”,
“scripts”: {
“dev”: “nodemon api/index.js”,
“start”: “node api/index.js”,
“build”: “npm install && npm install --prefix client && npm run build --prefix client”
},
“keywords”: ,
“author”: “”,
“license”: “ISC”,
“dependencies”: {
“bcryptjs”: “^2.4.3”,
“cookie-parser”: “^1.4.6”,
“dotenv”: “^16.3.1”,
“express”: “^4.19.2”,
“jsonwebtoken”: “^9.0.2”,
“mongoose”: “^7.6.11”,
“nodemon”: “^3.1.0”,
“start”: “^5.1.0”
}
}

Hi there,

What have you set your start command to? I have a feeling you have set it to node start instead of npm start (or node api/index.js) This is why NodeJS is looking for a start module as this is what node start would look for.

Regards,

Keith
Render Support, UTC+10 :australia:

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