skip to Main Content

connection problem mongoDB with MongoClient

I have some problem about connection to my mongoDB with MongoClient. const { MnogoClient , ObjectID} = require('mongodb') const id = new ObjectID() console.log(id) const connectionURL = 'mongodb://127.0.0.1:27017' const databaseName = 'task-manager' MnogoClient.connect(connectionURL , {useNewUrlParser: true}, (error, client)=>{ if(error){ return…

VIEW QUESTION

npm ERR! notsup Unsupported engine for @nestjsi/[email protected]: wanted: {"node":">=16.0.0"} (current: {"node":"14.19.3","npm":"6.14.17"}) – Docker

When building a Dockerfile I get: npm ERR! notsup Required: {"node":">=16.0.0"} npm ERR! notsup Actual: {"npm":"6.14.17","node":"14.19.3"} Dockerfile: FROM abc.xyz.com/abc-xyxa/ab/nodejs:14 As Development USER root # set the root's npm configuration to our project's configuration COPY .npmrc /root/.npmrc # copy project file…

VIEW QUESTION
Back To Top
Search