1不能在使用安装默认的无账号密码登陆 mongoose.connect('mongodb://localhost/playground', { useUnifiedTopology: true, useNewUrlParser: true }) .then(() => console.log('连接成功')) .catch(err => console