

warn: No administrators have been detected, running initial user setup NodeBB admin should be the same with that of MongoDB But this is really weired, right? You need to create a user, but not a database. That’s why I shouldn’t create the database db-name in MongoDB shell. I searched but found no similar questions, only knowing this concerned with creating something supposed to have unique name. (/Users/baidu/Workspace/NodeBB/install/databases.js:9:9 ) db.createUser () Īt nInThisContext (vm.js:53:16 )Īt Object.Module._extensions.js (module.js:416:10 )Īt Function.Module._load (module.js:300:12 )Īt Object. So I created a new user and fixed this problem. I don’t know the default username and password of my MongoDB. Mongo returned the following error: Authentication failed. Well, it failed and gave the following error message: error: NodeBB could not connect to your Mongo database. brew services start mongodb Connect NodeBB with MongoDB Create a user in MongoDBĪs NodeBB install instructions states, the interactive installation is available with. And it worked after the following instruction.

T16:46:45.524+0800 E QUERY Error: couldn 't connect to server 127.0.0.1:27017, connection attempt failed to StackOverflow, this is because mongodb service is not running. MongoDB can be easily installed on Mac OS using brew.īut after that, I found myself fail to login with terminal.

:joy: So this post serves as a hint for someone who runs into a similar situation. Yet I ended up spending much more time fixing all kinds of install problems. My attempt to use NodeBB could be largely attributed to the simplicity of its install instructions.
