我的meanjs应用程序没有在离线模式下开始使用?

时间:2015-06-15 18:52:59

标签: node.js offline meanjs

我已按Meanjs Official website

中所述安装了平均应用程序(MEAN)的所有先决条件

我希望你看看我正在收到的这个特殊错误,当我离线时也是如此。 但是当我连接到互联网时,它确实很有效。 帮我看看下面的错误:

Could not connect to MongoDB!
Error: failed to connect to [localhost:27017]
C:\Users\ASHOK\Downloads\meanjs-mean-88a89f2\node_modules\connect-mongo\lib\connect-mongo.js:186
      throw err;
            ^
Error: Error connecting to database: failed to connect to [localhost:27017]
at null.<anonymous> (C:\Users\ASHOK\Downloads\meanjs-mean-88a89f2\node_modules\mongoose\node_modules\mongodb\lib\mongodb\connection\server.js:555
:25)
at emit (events.js:118:17)
at null.<anonymous> (C:\Users\ASHOK\Downloads\meanjs-mean-88a89f2\node_modules\mongoose\node_modules\mongodb\lib\mongodb\connection\connection_po
ol.js:156:15)
at emit (events.js:110:17)
at Socket.<anonymous> (C:\Users\ASHOK\Downloads\meanjs-mean-88a89f2\node_modules\mongoose\node_modules\mongodb\lib\mongodb\connection\connection.
js:534:10)
at Socket.emit (events.js:107:17)
at net.js:950:16
at process._tickCallback (node.js:355:11)
[nodemon] app crashed - waiting for file changes before starting...

1 个答案:

答案 0 :(得分:0)

您是否启动了mongodb:尝试在终端中输入mongod