I recently switched from MySQL to postgres as my database for an node.js project. While I\'m able to reach my remote postgres database from my local pgAdmin III (OSX) client
The interface in node.js that I used can be found here https://github.com/brianc/node-postgres
var pg = require('pg'); var conString = "postgres://YourUserName:YourPassword@localhost:5432/YourDatabase";
try changing pg:// to postgres://
This was scraped from another stackoverflow article: How to make connection to Postgres via Node.js