Hi, I am having this issue in Render where when the deploy logs proceed to the node dist/index.js then my deployment for my server is suddenly Failed without an obvious reason, Render did not even throws an error, I’ve been fixing this for like 1 day but still no luck,
I already put the specific NODE_VERSION in environtment variable as render recommend.
anyone can help me please:(
The LOGS
==> Cloning from https:*************
Mar 9 11:01:48 AM==> Checking out commit c5fbe1012021dc69c9ff001d190296d5241c11cb in branch master
Mar 9 11:01:50 AM==> Using Node version 20.9.0 via environment variable NODE_VERSION
Mar 9 11:01:50 AM==> Docs on specifying a Node version: link
Mar 9 11:01:55 AM==> Running build command ‘npm install && npm run build’…
Mar 9 11:01:58 AM
Mar 9 11:01:58 AMadded 168 packages, and audited 169 packages in 3s
Mar 9 11:01:58 AM
Mar 9 11:01:58 AM16 packages are looking for funding
Mar 9 11:01:58 AM run npm fund
for details
Mar 9 11:01:58 AM
Mar 9 11:01:58 AMfound 0 vulnerabilities
Mar 9 11:01:59 AM
Mar 9 11:01:59 AM> build
Mar 9 11:01:59 AM> tsc
Mar 9 11:01:59 AM
Mar 9 11:02:01 AM==> Uploading build…
Mar 9 11:02:09 AM==> Build uploaded in 7s
Mar 9 11:02:09 AM==> Build successful
Mar 9 11:02:12 AM==> Deploying…
Mar 9 11:02:29 AM==> Using Node version 20.9.0 via environment variable NODE_VERSION
Mar 9 11:02:29 AM==> Docs on specifying a Node version: link
Mar 9 11:02:32 AM==> Running ‘npm run start’
Mar 9 11:02:35 AM
Mar 9 11:02:35 AM> start
Mar 9 11:02:35 AM> node dist/index.js
Mar 9 11:02:35 AM
Mar 9 11:03:11 AM==> Using Node version 20.9.0 via environment variable NODE_VERSION
Mar 9 11:03:11 AM==> Docs on specifying a Node version: link
Mar 9 11:03:11 AM==> Common ways to troubleshoot your deploy: Troubleshooting Your Deploy | Render Docs
Mar 9 11:03:13 AM==> Running ‘npm run start’
Mar 9 11:03:17 AM
Mar 9 11:03:17 AM> start
Mar 9 11:03:17 AM> node dist/index.js
Mar 9 11:03:17 AM
Mar 9 11:04:05 AM==> Using Node version 20.9.0 via environment variable NODE_VERSION
Mar 9 11:04:05 AM==> Docs on specifying a Node version: link
Mar 9 11:04:07 AM==> Running ‘npm run start’
Mar 9 11:04:10 AM
Mar 9 11:04:10 AM> start
Mar 9 11:04:10 AM> node dist/index.js
My Directory
My package.json
{
“name”: “server”,
“version”: “”,
“description”: “”,
“main”: “index.js”,
“scripts”: {
“start”: “node dist/index.js”,
“dev”: “nodemon src/index.ts”,
“build”: “tsc”
},
“engines”: {
“node”: “20.9.0”
},
“devDependencies”: {
“@types/bcrypt”: “^5.0.2”,
“@types/cookie-parser”: “^1.4.7”,
“@types/cors”: “^2.8.17”,
“@types/dotenv”: “^8.2.0”,
“@types/express”: “^4.17.21”,
“@types/helmet”: “^4.0.0”,
“@types/jsonwebtoken”: “^9.0.6”,
“@types/morgan”: “^1.9.9”,
“nodemon”: “^3.0.2”,
“typescript”: “^5.3.3”
},
“dependencies”: {
“bcrypt”: “^5.1.1”,
“cookie-parser”: “^1.4.6”,
“cors”: “^2.8.5”,
“dotenv”: “^16.3.1”,
“express”: “^4.18.2”,
“express-async-handler”: “^1.2.0”,
“helmet”: “^7.1.0”,
“jsonwebtoken”: “^9.0.2”,
“mongoose”: “^8.0.3”,
“morgan”: “^1.10.0”
}
}
What I entered in during deployment
server
master
npm install && npm run build
npm run start
Please anyone can help me:(