@baris Hm was doing similar approach, please check my another question with path.js error.
UNSOLVED Opens an administrator command line
Hello! I'm trying to build a forum through this guide https://docs.nodebb.org/installing/os/windows/ But I got stuck in the middle! I don't understand what it means to open an administrator command line (https://docs.nodebb.org/installing/os/windows/#configure-a-service-for-the-mongod-server)
I would love if you could explain to me how to create the directories through the command line and everything below Thanks a lot!
I suggest you look that up. You don't need to create the directories through the command prompt, but you can if you want to.
And what am I doing here?
Create a config file (C:\MongoDB\mongod.cfg) defining those paths
systemLog: destination: file path: C:\MongoDB\logs\mongod.log storage: dbPath: C:\MongoDB\data\db
Install the MongoDB service bash mongod.exe --config "C:\MongoDB\mongod.cfg" --install