added node_modules directory. finally was able to compile pg with native library using node-gyp.