How to run NodeBB on Mongodb?
-
Hi follow https://docs.nodebb.org/en/latest/configuring/databases/mongo.html these step to run nodebb on mongodb
at last i run node app.js but i am get following error**[5196] - info: NodeBB v0.6.1 Copyright (C) 2013-2014 NodeBB Inc.
[5196] - info: This program comes with ABSOLUTELY NO WARRANTY.
[5196] - info: This is free software, and you are welcome to redistribute it under certain conditions.
[5196] - info:
[5196] - info: Time: Fri Mar 27 2015 11:30:52 GMT+0530 (India Standard Time)
[5196] - info: Initializing NodeBB v0.6.1
{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS version
{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS version
{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS version
{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS version
D:\d\mongo\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\topologies\server.js:470
bsonInstance = new BSON(bsonTypes);
^
TypeError: undefined is not a function
at new Server (D:\d\mongo\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\topologies\server.js:470:20)
at new Server (D:\d\mongo\NodeBB\node_modules\mongodb\lib\server.js:134:16)
at Function.MongoClient.connect (D:\d\mongo\NodeBB\node_modules\mongodb\lib\mongo_client.js:208:63)
at Object.module.init (D:\d\mongo\NodeBB\src\database\mongo.js:68:15)
at start (D:\d\mongo\NodeBB\app.js:136:28)
at Object.<anonymous> (D:\d\mongo\NodeBB\app.js:75:2)
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)
**I am new to nodebb please help me?