mongoose.connect('mongodb://localhost/test');
(node:4964) DeprecationWarning: `open()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. See http://mongoosejs.com/docs/connections.html#use-mongo-client
mongoose.connect('mongodb://localhost/test',{useMongoClient: true});
问题解决。