各种蛋疼问题啊,Error: connect ECONNREFUSED
Error: connect ECONNREFUSED
Error: connect ECONNREFUSED
2015-08-07
1.我出现的错误指令:
E:\Front\nodjsjs\node_modules\mongoose\lib\index.js:330
throw new mongoose.Error.MissingSchemaError(name);
^
MissingSchemaError: Schema hasn't been registered for model "Movie".
Use mongoose.model(name, schema)
at Mongoose.model (E:\Front\nodjsjs\node_modules\mongoose\lib\index.js:330:1
3)
at Object.<anonymous> (E:\Front\nodjsjs\models\movie.js:6:22)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (E:\Front\nodjsjs\app.js:21:13)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
2.我的npm list,关于mongo的部分。我只是npm和bower安装了东西,不知道mongodb要不要另外安装。
│ └─┬ acorn-globals@1.0.5
│ └── acorn@2.2.0
├─┬ mongodb@2.0.40
│ ├── es6-promise@2.1.1
│ ├─┬ mongodb-core@1.2.9
│ │ ├── bson@0.4.11
│ │ └─┬ kerberos@0.0.12
│ │ └── nan@1.8.4
│ └─┬ readable-stream@1.0.31
│ ├── core-util-is@1.0.1
│ ├── inherits@2.0.1
│ ├── isarray@0.0.1
│ └── string_decoder@0.10.31
├─┬ mongoose@4.1.2
│ ├── async@0.9.0
│ ├─┬ bson@0.3.2
│ │ └─┬ bson-ext@0.1.12
3.另外,我在命令行中输入mongo,不能进入mongo的命令行
$ mongo
sh.exe": mongo: command not found
举报