Connection refused ( Error: connect ECONNREFUSED ::1:27017 )

Normally you get connection refused if no process is actively listening on that port.
So make sure the mongodb process is indeed listening on local:27017.

You can use something like netstat to verify that.

1 Like