I have exact issue with same error message. tried to use mongoose.connect('mongodb://127.0.0.1:27017/movieApp');
I also made sure that no existing connection blocking running the connection script using node.
I am using this from WSL2 or Gitbash but both are spitting the above error.