Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

启动项目mongodb启动报错 #66

Open
bill315 opened this issue May 9, 2019 · 2 comments
Open

启动项目mongodb启动报错 #66

bill315 opened this issue May 9, 2019 · 2 comments

Comments

@bill315
Copy link

bill315 commented May 9, 2019

请问npm 启动这个错误咋解决?(mongodb redis 都启动)
E:\study\mall\m-mall-admin-master\node_modules_session-mongoose@0.5.2@session-mongoose\index.js:97
this.model = connection.model(this.options.modelName, SessionSchema);
^

TypeError: connection.model is not a function
at new SessionStore (E:\study\mall\m-mall-admin-master\node_modules_session-mongoose@0.5.2@session-mongoose\index.js:97:35)
at Object. (E:/study/mall/m-mall-admin-master/app.js:26:15)

@WHHCNN
Copy link

WHHCNN commented Dec 10, 2019

一样报错,兄弟,找到解决方法了么

@skyvow
Copy link
Owner

skyvow commented Dec 10, 2019

试试重新 npm install 不要用淘宝镜像(cnpm)。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants