mongoose.connect()方法在powershell中报错
报错内容:
网站服务器连接成功,请访问localhost
(node:14116) Warning: Accessing non-existent property ‘MongoError’ of module exports inside circular dependency
(Use node --trace-warnings ...
to show where the warning was created)
(node:14116) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.
(node:14116) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
(node:14116) DeprecationWarning: Listening to events on the Db class has been deprecated and will be removed in the next major version.