command to launch mongod locally with local mongodata directory
npm install mongosrv
npm install -g mongosrv
mongosrv
The directory mongodata will be created (if it doesn't yet exist), and mongod will be launched.