我正在尝试使用此处描述的平均堆栈:http: //mean.io/
安装后,发出“咕噜声”时,出现错误:
debugger listening on port 5858
4 Jan 01:47:40 - [nodemon] reading ignore list
Express app started on port 3000
events.js:72
throw er; // Unhandled 'error' event
^
Error: failed to connect to [localhost:27017]
at null.<anonymous> (/mean/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:540:74)
at EventEmitter.emit (events.js:106:17)
at null.<anonymous> (/mean/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:140:15)
at EventEmitter.emit (events.js:98:17)
at Socket.<anonymous> (/mean/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection.js:478:10)
at Socket.EventEmitter.emit (events.js:95:17)
at net.js:441:14
at process._tickCallback (node.js:415:13)
4 Jan 01:47:40 - [nodemon] app crashed - waiting for file changes before starting...
我尝试了网站上指定的故障排除:更新 Grunt、bower 和清理 npm 和 bower 缓存效果很好。但更新 npm 也会出错:
npm ERR! error rolling back Error: Refusing to delete: /usr/local/bin/npm not in /usr/local/lib/node_modules/npm
这看起来像是homebrew 和 npm 之间的冲突。但无论如何我已经安装了 1.3.21 版本。
我尝试时出现同样的错误node server
。
您知道我可以做些什么来使服务器正常工作吗?