-
Notifications
You must be signed in to change notification settings - Fork 402
Deprecated in mongoose #24
Comments
是不是mongoose版本不对?我看了您的webpack的mongoose版本是4.6.0的。需要安装旧版本mongodb对吗? |
@angelfreedomv 有可能,最好按照 package.json 版本来。另外我本地 mongodb-3.2.7、redis-3.2.3。 |
你本地测试是windows还是mac os系统?我看了一下本地的mongodb是3.4.9版本,要降级版本对吧。 |
@angelfreedomv mac |
好的 谢谢了 我降级版本试试 |
mongodb 3.2 windows版本在网上不好找了啊 |
[2017-09-21 16:10:42.710] [ERROR] console - (node:11080) DeprecationWarning: 我找到了 3.2.7版本,还是不行,老是出这样的问题,是不是要改成 |
解决了,刚才网络问题少装了依赖 |
我使用了以下步骤解决了此问题: |
I found a problem:
[2017-09-21 12:04:47.191] [ERROR] console - (node:8808) DeprecationWarning:
open()
is deprecated in mongoose >= 4.11.0, useopenUri()
instead, or set theuseMongoClient
option if usingconnect()
orcreateConnection()
. See http://mongoosejs.com/docs/connections.html#use-mongo-client.The text was updated successfully, but these errors were encountered: