Hello,
I’m facing the issue while deploying the node application. I have pasted the error kindly check and let me know how I can solve it. I am not getting any solution. If anyone can guide me, it would be helpful.
ERROR
Nov 22 09:14:08 AM ==> Running build command 'npm install '…
Nov 22 09:14:12 AM
Nov 22 09:14:12 AM > bcrypt@5.1.1 install /opt/render/project/src/server/node_modules/bcrypt
Nov 22 09:14:12 AM > node-pre-gyp install --fallback-to-build
Nov 22 09:14:12 AM
Nov 22 09:14:12 AM [bcrypt] Success: “/opt/render/project/src/server/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node” is installed via remote
Nov 22 09:14:13 AM added 402 packages from 365 contributors and audited 403 packages in 4.679s
Nov 22 09:14:13 AM
Nov 22 09:14:13 AM 28 packages are looking for funding
Nov 22 09:14:13 AM run npm fund
for details
Nov 22 09:14:13 AM
Nov 22 09:14:13 AM found 1 high severity vulnerability
Nov 22 09:14:13 AM run npm audit fix
to fix them, or npm audit
for details
Nov 22 09:14:15 AM ==> Uploading build…
Nov 22 09:14:24 AM ==> Deploying…
Nov 22 09:14:22 AM ==> Build uploaded in 7s
Nov 22 09:14:22 AM ==> Build successful
Nov 22 09:14:42 AM ==> Using Node version 14.17.0 (default)
Nov 22 09:14:42 AM ==> Docs on specifying a Node version: Setting Your Node.js Version | Render Docs
Nov 22 09:14:42 AM ==> Running ‘npm start’
Nov 22 09:14:44 AM
Nov 22 09:14:44 AM > server@1.0.0 start /opt/render/project/src/server
Nov 22 09:14:44 AM > nodemon index.js
Nov 22 09:14:44 AM
Nov 22 09:14:45 AM [nodemon] 3.0.1
Nov 22 09:14:45 AM [nodemon] to restart at any time, enter rs
Nov 22 09:14:45 AM [nodemon] watching path(s): .
Nov 22 09:14:45 AM [nodemon] watching extensions: js,mjs,cjs,json
Nov 22 09:14:45 AM [nodemon] starting node index.js
Nov 22 09:14:47 AM /opt/render/project/src/server/node_modules/bson/lib/bson.cjs:479
Nov 22 09:14:47 AM inspect ??= defaultInspect;
Nov 22 09:14:47 AM ^^^
Nov 22 09:14:47 AM
Nov 22 09:14:47 AM SyntaxError: Unexpected token ‘??=’
Nov 22 09:14:47 AM at wrapSafe (internal/modules/cjs/loader.js:984:16)
Nov 22 09:14:47 AM at Module._compile (internal/modules/cjs/loader.js:1032:27)
Nov 22 09:14:47 AM at Object.Module._extensions…js (internal/modules/cjs/loader.js:1097:10)
Nov 22 09:14:47 AM at Module.load (internal/modules/cjs/loader.js:933:32)
Nov 22 09:14:47 AM at Function.Module._load (internal/modules/cjs/loader.js:774:14)
Nov 22 09:14:47 AM at Module.require (internal/modules/cjs/loader.js:957:19)
Nov 22 09:14:47 AM at require (internal/modules/cjs/helpers.js:88:18)
Nov 22 09:14:47 AM at Object. (/opt/render/project/src/server/node_modules/mongodb/lib/bson.js:4:14)
Nov 22 09:14:47 AM at Module._compile (internal/modules/cjs/loader.js:1068:30)
Nov 22 09:14:47 AM at Object.Module._extensions…js (internal/modules/cjs/loader.js:1097:10)
Nov 22 09:14:47 AM [nodemon] app crashed - waiting for file changes before starting…
Nov 22 09:18:04 AM ==> No open HTTP ports detected
Nov 22 09:18:04 AM ==> Web Services | Render Docs
Thanks…