как заставить его работать. mongodb-compass или mongodb в целом

У товарищ всё работает но у мня выдаёт ошибку
node app.js >>>

MongoParseError: options usefindandmodify, usecreateindex, poolsize, buffermaxentries are not supported
   at Object.parseOptions (/home/den/elbrus/p1w3d4_v2/node_modules/mongodb/lib/connection_string.js:281:15)
   at new MongoClient (/home/den/elbrus/p1w3d4_v2/node_modules/mongodb/lib/mongo_client.js:62:46)
   at /home/den/elbrus/p1w3d4_v2/node_modules/mongoose/lib/connection.js:779:16
   at new Promise (<anonymous>)
   at NativeConnection.Connection.openUri (/home/den/elbrus/p1w3d4_v2/node_modules/mongoose/lib/connection.js:776:19)
   at /home/den/elbrus/p1w3d4_v2/node_modules/mongoose/lib/index.js:328:10
   at promiseOrCallback (/home/den/elbrus/p1w3d4_v2/node_modules/mongoose/lib/helpers/promiseOrCallback.js:10:12)
   at Mongoose._promiseOrCallback (/home/den/elbrus/p1w3d4_v2/node_modules/mongoose/lib/index.js:1149:10)
   at Mongoose.connect (/home/den/elbrus/p1w3d4_v2/node_modules/mongoose/lib/index.js:327:20)
   at dbConnect (/home/den/elbrus/p1w3d4_v2/db/connect.js:6:12)
(node:18288) UnhandledPromiseRejectionWarning: MongooseError: Operation `directors.insertOne()` buffering timed out after 10000ms
   at Timeout.<anonymous> (/home/den/elbrus/p1w3d4_v2/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js:149:23)
   at listOnTimeout (internal/timers.js:554:17)
   at processTimers (internal/timers.js:497:7)
(node:18288) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:18288) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

стоит расширение npm install mongoose мне нужно приложение mongodb-compass. установлено по этому сайту. но пошло что то не так.

он открывается (окно белое),но через 5 секунд закрывается.

До этого тоже была проблема, пришлось переустановить ubuntu эта ошибка помогите ришить эту ерунду покупать Mac денег нету но это не решение(.

[23114:0923/070140.222706:FATAL:gpu_data_manager_impl_private.cc(894)] The display compositor is frequently crashing. Goodbye.
Ловушка трассировки/останова (стек памяти сброшен на диск)

дополнительная информация

sudo systemctl status mongod
● mongod.service - MongoDB Database Server
     Loaded: loaded (/lib/systemd/system/mongod.service; disabled; vendor>
     Active: active (running) since Thu 2021-09-23 06:44:41 EEST; 18s ago
       Docs: https://docs.mongodb.org/manual
   Main PID: 18125 (mongod)
     Memory: 60.7M
        CPU: 685ms
     CGroup: /system.slice/mongod.service
             └─18125 /usr/bin/mongod --config /etc/mongod.conf

sep 23 06:44:41 d991 systemd[1]: Started MongoDB Database Server.

npm start

> [email protected] start
> node db/app.js

MongoParseError: options usefindandmodify, usecreateindex, poolsize, buffermaxentries are not supported
    at Object.parseOptions (/home/den/elbrus/p1w3d3/node_modules/mongodb/lib/connection_string.js:281:15)
    at new MongoClient (/home/den/elbrus/p1w3d3/node_modules/mongodb/lib/mongo_client.js:62:46)
    at /home/den/elbrus/p1w3d3/node_modules/mongoose/lib/connection.js:779:16
    at new Promise (<anonymous>)
    at NativeConnection.Connection.openUri (/home/den/elbrus/p1w3d3/node_modules/mongoose/lib/connection.js:776:19)
    at /home/den/elbrus/p1w3d3/node_modules/mongoose/lib/index.js:328:10
    at promiseOrCallback (/home/den/elbrus/p1w3d3/node_modules/mongoose/lib/helpers/promiseOrCallback.js:10:12)
    at Mongoose._promiseOrCallback (/home/den/elbrus/p1w3d3/node_modules/mongoose/lib/index.js:1149:10)
    at Mongoose.connect (/home/den/elbrus/p1w3d3/node_modules/mongoose/lib/index.js:327:20)
    at dbConnect (/home/den/elbrus/p1w3d3/db/config.js:24:12)
(node:81264) UnhandledPromiseRejectionWarning: MongooseError: Operation `films.insertOne()` buffering timed out after 10000ms
    at Timeout.<anonymous> (/home/den/elbrus/p1w3d3/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js:149:23)
    at listOnTimeout (internal/timers.js:554:17)
    at processTimers (internal/timers.js:497:7)
(node:81264) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:81264) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Ответы (0 шт):