Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

176
Views
¿Cómo puedo resolver el siguiente error when. cuando trato de establecer una conexión con mongo, aparece el siguiente error "TypeError: db.on no es una función"

En el siguiente codigo:

 var mongoose = require('mongoose'); var mongoDB = 'mongodb://localhost/red_bicicletas'; mongoose.connect(mongoDB, {useNewUrlParser: true }); mongoose.Promise = global.Promise; var db = mongoose.Connection; db.on('error', console.error.bind(console, 'MongoDB connection error'));

TypeError: db.on no es una función

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!