I have that code:
var express = require(\'express\'), stylus = require(\'stylus\'), logger = require(\'morgan\'), bodyParser = require(\'body-par
I know this issue is old, but i came across a similar issue and the above solutions did not work for me, I'm using Ubuntu 20.04 LTS.
What i did to make it work was just running mongo service using this command:
$ mongod
Then everything worked fine