I use nodejs and mongoose to save document to mongodb in windows in development, but I fail to connect to mongodb . My nodeunit test is always being blocked to the line mongoose.connect()
.
I found mongoose use node-mongodb-native . My question is:
monogodb
. So, there's nothing you need to do special to get it, as doing
npm install mongoose
is enough to install the native package.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.