Use vi or nano to edit the file. Nano is probably going to be easier for you.
Cannot install with MongoDB on Windows 10
Hello, I'm a first time user trying to install nodebb with mongodb. I've created the nodedb database for mongodb and added the nodebb user, and verified that I can connect with that user through mongoDB, however; after going through all of the steps when I enter node app.js --setup everything runs for quite a while until I get an error stating: 16/11 23:04  - error: NodeBB could not connect to your Mongo database. Mongo returned the following error: auth f
16/11 23:04  - warn: NodeBB Setup Aborted.
MongoError: auth failed
I'm in! I was taking the default database name of 0 instead of entering my database name. Doh!