title: Typeorm - cannot connect to postgres
body: <p>I created Typeform project, but I can not connect to Postgres. </p>
  
  <p>I followed step by step from the documentation.</p>
  
  <ol>
  <li>npm install typeorm -g</li>
  <li>typeorm init --name MyProject --database postgres</li>
  <li>cd MyProjectnpm install</li>
  </ol>
  
  <p>then I runed command npm start and this is output</p>
  
  <blockquote>
    <p>MyProject@0.0.1 start /Users/marek/Documents/works/test/MyProject
    ts-node src/index.ts</p>
  </blockquote>
  
  <p>marek@Mareks-MacBook-Pro MyProject % </p>
  
  <p>The output is without errors but the script can not connect, I know it because the expected output is "console.log("Connected.");"</p>
  
  <p>This is code</p>
  
  <pre><code>createConnection().then(async connection =&gt; {
    console.log("Connected.");
  }).catch(error =&gt; console.log("error: " + error));
  </code></pre>
  
  <p>This part "console.log("error: " + error)" returned nothing.</p>
  
  <p>I change the other Postgres server and the output was the same.
  I change parameters type in ormconfig.json to MySQL everything was OK.</p>
  
  <p>Has somebody an Idea? </p>
  
  <p>Thank you.</p>