Nov 16 02:37:19 PM ==> Cloning from https://github.com/Mohdsohail7/StudyNote…
Nov 16 02:37:21 PM ==> Checking out commit 48cc5eb422fd7507d687757508652fc5de0cde72 in branch main
Nov 16 02:37:23 PM ==> Using Node version 14.17.0 (default)
Nov 16 02:37:23 PM ==> Docs on specifying a Node version: Setting Your Node.js Version | Render Docs
Nov 16 02:37:23 PM ==> Running build command ‘npm install’…
Nov 16 02:37:27 PM
Nov 16 02:37:27 PM > bcrypt@5.1.0 install /opt/render/project/src/server/node_modules/bcrypt
Nov 16 02:37:27 PM > node-pre-gyp install --fallback-to-build
Nov 16 02:37:27 PM
Nov 16 02:37:27 PM [bcrypt] Success: “/opt/render/project/src/server/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node” is installed via remote
Nov 16 02:37:27 PM
Nov 16 02:37:27 PM > core-js@3.32.0 postinstall /opt/render/project/src/server/node_modules/core-js
Nov 16 02:37:27 PM > node -e “try{require(‘./postinstall’)}catch(e){}”
Nov 16 02:37:27 PM
Nov 16 02:37:28 PM added 240 packages from 326 contributors and audited 241 packages in 3.878s
Nov 16 02:37:28 PM
Nov 16 02:37:28 PM 18 packages are looking for funding
Nov 16 02:37:28 PM run npm fund
for details
Nov 16 02:37:28 PM
Nov 16 02:37:28 PM found 2 moderate severity vulnerabilities
Nov 16 02:37:28 PM run npm audit fix
to fix them, or npm audit
for details
Nov 16 02:37:28 PM ==> Uploading build…
Nov 16 02:37:38 PM ==> Deploying…
Nov 16 02:37:36 PM ==> Build uploaded in 7s
Nov 16 02:37:36 PM ==> Build successful
Nov 16 02:37:55 PM ==> Using Node version 14.17.0 (default)
Nov 16 02:37:55 PM ==> Docs on specifying a Node version: Setting Your Node.js Version | Render Docs
Nov 16 02:37:55 PM ==> Running ‘npm start’
Nov 16 02:37:57 PM
Nov 16 02:37:57 PM > server@1.0.0 start /opt/render/project/src/server
Nov 16 02:37:57 PM > node index.js
Nov 16 02:37:57 PM
Nov 16 02:37:58 PM /opt/render/project/src/server/node_modules/bson/lib/bson.cjs:479
Nov 16 02:37:58 PM inspect ??= defaultInspect;
Nov 16 02:37:58 PM ^^^
Nov 16 02:37:58 PM
Nov 16 02:37:58 PM SyntaxError: Unexpected token ‘??=’
Nov 16 02:37:58 PM at wrapSafe (internal/modules/cjs/loader.js:984:16)
Nov 16 02:37:58 PM at Module._compile (internal/modules/cjs/loader.js:1032:27)
Nov 16 02:37:58 PM at Object.Module._extensions…js (internal/modules/cjs/loader.js:1097:10)
Nov 16 02:37:58 PM at Module.load (internal/modules/cjs/loader.js:933:32)
Nov 16 02:37:58 PM at Function.Module._load (internal/modules/cjs/loader.js:774:14)
Nov 16 02:37:58 PM at Module.require (internal/modules/cjs/loader.js:957:19)
Nov 16 02:37:58 PM at require (internal/modules/cjs/helpers.js:88:18)
Nov 16 02:37:58 PM at Object. (/opt/render/project/src/server/node_modules/mongodb/lib/bson.js:4:14)
Nov 16 02:37:58 PM at Module._compile (internal/modules/cjs/loader.js:1068:30)
Nov 16 02:37:58 PM at Object.Module._extensions…js (internal/modules/cjs/loader.js:1097:10)
Nov 16 02:37:58 PM npm ERR! code ELIFECYCLE
Nov 16 02:37:58 PM npm ERR! errno 1
Nov 16 02:37:58 PM npm ERR! server@1.0.0 start: node index.js
Nov 16 02:37:58 PM npm ERR! Exit status 1
Nov 16 02:37:58 PM npm ERR!
Nov 16 02:37:58 PM npm ERR! Failed at the server@1.0.0 start script.
Nov 16 02:37:58 PM npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Nov 16 02:37:58 PM
Nov 16 02:37:58 PM npm ERR! A complete log of this run can be found in:
Nov 16 02:37:58 PM npm ERR! /opt/render/.cache/_logs/2023-11-16T09_07_58_297Z-debug.log
Nov 16 02:38:02 PM ==> Using Node version 14.17.0 (default)
Nov 16 02:38:02 PM ==> Docs on specifying a Node version: Setting Your Node.js Version | Render Docs
Nov 16 02:38:02 PM ==> Running ‘npm start’
Nov 16 02:38:04 PM
Nov 16 02:38:04 PM > server@1.0.0 start /opt/render/project/src/server
Nov 16 02:38:04 PM > node index.js
Nov 16 02:38:04 PM
Nov 16 02:38:05 PM /opt/render/project/src/server/node_modules/bson/lib/bson.cjs:479
Nov 16 02:38:05 PM inspect ??= defaultInspect;
Nov 16 02:38:05 PM ^^^
Nov 16 02:38:05 PM
Nov 16 02:38:05 PM SyntaxError: Unexpected token ‘??=’
Nov 16 02:38:05 PM at wrapSafe (internal/modules/cjs/loader.js:984:16)
Nov 16 02:38:05 PM at Module._compile (internal/modules/cjs/loader.js:1032:27)
Nov 16 02:38:05 PM at Object.Module._extensions…js (internal/modules/cjs/loader.js:1097:10)
Nov 16 02:38:05 PM at Module.load (internal/modules/cjs/loader.js:933:32)
Nov 16 02:38:05 PM at Function.Module._load (internal/modules/cjs/loader.js:774:14)
Nov 16 02:38:05 PM at Module.require (internal/modules/cjs/loader.js:957:19)
Nov 16 02:38:05 PM at require (internal/modules/cjs/helpers.js:88:18)
Nov 16 02:38:05 PM at Object. (/opt/render/project/src/server/node_modules/mongodb/lib/bson.js:4:14)
Nov 16 02:38:05 PM at Module._compile (internal/modules/cjs/loader.js:1068:30)
Nov 16 02:38:05 PM at Object.Module._extensions…js (internal/modules/cjs/loader.js:1097:10)
Nov 16 02:38:05 PM npm ERR! code ELIFECYCLE
Nov 16 02:38:05 PM npm ERR! errno 1
Nov 16 02:38:05 PM npm ERR! server@1.0.0 start: node index.js
Nov 16 02:38:05 PM npm ERR! Exit status 1
Nov 16 02:38:05 PM npm ERR!
Nov 16 02:38:05 PM npm ERR! Failed at the server@1.0.0 start script.
Nov 16 02:38:05 PM npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Nov 16 02:38:05 PM
Nov 16 02:38:05 PM npm ERR! A complete log of this run can be found in:
Nov 16 02:38:05 PM npm ERR! /opt/render/.cache/_logs/2023-11-16T09_08_05_489Z-debug.log
Nov 16 02:38:25 PM ==> Using Node version 14.17.0 (default)
Nov 16 02:38:25 PM ==> Docs on specifying a Node version: Setting Your Node.js Version | Render Docs
Nov 16 02:38:25 PM ==> Running ‘npm start’
Nov 16 02:38:26 PM
Nov 16 02:38:26 PM > server@1.0.0 start /opt/render/project/src/server
Nov 16 02:38:26 PM > node index.js
Nov 16 02:38:26 PM
Nov 16 02:38:27 PM /opt/render/project/src/server/node_modules/bson/lib/bson.cjs:479
Nov 16 02:38:27 PM inspect ??= defaultInspect;
Nov 16 02:38:27 PM ^^^
Nov 16 02:38:27 PM
Nov 16 02:38:27 PM SyntaxError: Unexpected token ‘??=’
Nov 16 02:38:27 PM at wrapSafe (internal/modules/cjs/loader.js:984:16)
Nov 16 02:38:27 PM at Module._compile (internal/modules/cjs/loader.js:1032:27)
Nov 16 02:38:27 PM at Object.Module._extensions…js (internal/modules/cjs/loader.js:1097:10)
Nov 16 02:38:27 PM at Module.load (internal/modules/cjs/loader.js:933:32)
Nov 16 02:38:27 PM at Function.Module._load (internal/modules/cjs/loader.js:774:14)
Nov 16 02:38:27 PM at Module.require (internal/modules/cjs/loader.js:957:19)
Nov 16 02:38:27 PM at require (internal/modules/cjs/helpers.js:88:18)
Nov 16 02:38:27 PM at Object. (/opt/render/project/src/server/node_modules/mongodb/lib/bson.js:4:14)
Nov 16 02:38:27 PM at Module._compile (internal/modules/cjs/loader.js:1068:30)
Nov 16 02:38:27 PM at Object.Module._extensions…js (internal/modules/cjs/loader.js:1097:10)
Nov 16 02:38:27 PM npm ERR! code ELIFECYCLE
Nov 16 02:38:27 PM npm ERR! errno 1
Nov 16 02:38:27 PM npm ERR! server@1.0.0 start: node index.js
Nov 16 02:38:27 PM npm ERR! Exit status 1
Nov 16 02:38:27 PM npm ERR!
Nov 16 02:38:27 PM npm ERR! Failed at the server@1.0.0 start script.
Nov 16 02:38:27 PM npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Nov 16 02:38:28 PM
Nov 16 02:38:28 PM npm ERR! A complete log of this run can be found in:
Nov 16 02:38:28 PM npm ERR! /opt/render/.cache/_logs/2023-11-16T09_08_27_996Z-debug.log
Nov 16 02:38:55 PM ==> Using Node version 14.17.0 (default)
Nov 16 02:38:55 PM ==> Docs on specifying a Node version: Setting Your Node.js Version | Render Docs
Nov 16 02:38:55 PM ==> Running ‘npm start’
Nov 16 02:38:56 PM
Nov 16 02:38:56 PM > server@1.0.0 start /opt/render/project/src/server
Nov 16 02:38:56 PM > node index.js
Nov 16 02:38:56 PM
Nov 16 02:38:57 PM /opt/render/project/src/server/node_modules/bson/lib/bson.cjs:479
Nov 16 02:38:57 PM inspect ??= defaultInspect;
Nov 16 02:38:57 PM ^^^
Nov 16 02:38:57 PM
Nov 16 02:38:57 PM SyntaxError: Unexpected token ‘??=’
Nov 16 02:38:57 PM at wrapSafe (internal/modules/cjs/loader.js:984:16)
Nov 16 02:38:57 PM at Module._compile (internal/modules/cjs/loader.js:1032:27)
Nov 16 02:38:57 PM at Object.Module._extensions…js (internal/modules/cjs/loader.js:1097:10)
Nov 16 02:38:57 PM at Module.load (internal/modules/cjs/loader.js:933:32)
Nov 16 02:38:57 PM at Function.Module._load (internal/modules/cjs/loader.js:774:14)
Nov 16 02:38:57 PM at Module.require (internal/modules/cjs/loader.js:957:19)
Nov 16 02:38:57 PM at require (internal/modules/cjs/helpers.js:88:18)
Nov 16 02:38:57 PM at Object. (/opt/render/project/src/server/node_modules/mongodb/lib/bson.js:4:14)
Nov 16 02:38:57 PM at Module._compile (internal/modules/cjs/loader.js:1068:30)
Nov 16 02:38:57 PM at Object.Module._extensions…js (internal/modules/cjs/loader.js:1097:10)
Nov 16 02:38:57 PM npm ERR! code ELIFECYCLE
Nov 16 02:38:57 PM npm ERR! errno 1
Nov 16 02:38:57 PM npm ERR! server@1.0.0 start: node index.js
Nov 16 02:38:57 PM npm ERR! Exit status 1
Nov 16 02:38:57 PM npm ERR!
Nov 16 02:38:57 PM npm ERR! Failed at the server@1.0.0 start script.
Nov 16 02:38:57 PM npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Nov 16 02:38:57 PM
Nov 16 02:38:57 PM npm ERR! A complete log of this run can be found in:
Nov 16 02:38:57 PM npm ERR! /opt/render/.cache/_logs/2023-11-16T09_08_57_992Z-debug.log
Hi,
The nullish coalescing assignment operator show in those logs - ??=
- requires a newer Node version than the current Render default.
The above logs also show the Node version being used and a link to the docs on how to change it, e.g.
==> Using Node version 14.17.0 (default)
==> Docs on specifying a Node version: https://render.com/docs/node-version
Specify a Node version to match the one you developed/tested with.
Alan
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.