Zeeshu911 / MERN-Stack-Hospital-Management-System-Web-Application

A robust MERN-based system for hospitals. Features authentication & authorization, working with multiple json web tokens, dual frontends (user and admin), and scalable architecture. Explore and contribute! 🏥🚀
94 stars 71 forks source link

mongodb version error #4

Open wikumwicky opened 5 months ago

wikumwicky commented 5 months ago

`/home/wikum/Desktop/MERN/backend/node_modules/bson/lib/bson.cjs:726 inspect ??= defaultInspect; ^^^

SyntaxError: Unexpected token '??=' at wrapSafe (internal/modules/cjs/loader.js:992:16) at Module._compile (internal/modules/cjs/loader.js:1040:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10) at Module.load (internal/modules/cjs/loader.js:941:32) at Function.Module._load (internal/modules/cjs/loader.js:782:14) at Module.require (internal/modules/cjs/loader.js:965:19) at require (internal/modules/cjs/helpers.js:88:18) at Object. (/home/wikum/Desktop/MERN/backend/node_modules/mongodb/lib/bson.js:4:14) at Module._compile (internal/modules/cjs/loader.js:1076:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10) [nodemon] app crashed - waiting for file changes before starting... ` error

VinayakGaikwad101 commented 4 months ago

The ??= (nullish) operator is supported in Node.js versions 15 and above. You can upgrade your Node.js version to use this operator.

satyam9721 commented 1 month ago

you need the white list current ip on mongo db atlas.