Over the past 2 days, I am also getting the same issue, and this is due to a version issue
I used this version of "mongodb": "^ 2.2.19",
"mongoose": "^ 4.7.6", and getting an error that Hex is not a function
then I change the version to "mongodb": "2.1.7", "mongoose": "4.4.8"
and it starts to work, so I think they removed the hex function and others, so after installing this version in your .json package, try not to use ^ before the version name just add "mongodb": "2.1.7", "mongoose": "4.4.8" and set
source share