Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

422
Views
Typeorm - cannot connect to postgres

I created Typeform project, but I can not connect to Postgres.

I followed step by step from the documentation.

  1. npm install typeorm -g
  2. typeorm init --name MyProject --database postgres
  3. cd MyProjectnpm install

then I runed command npm start and this is output

MyProject@0.0.1 start /Users/marek/Documents/works/test/MyProject ts-node src/index.ts

marek@Mareks-MacBook-Pro MyProject %

The output is without errors but the script can not connect, I know it because the expected output is "console.log("Connected.");"

This is code

createConnection().then(async connection => {
  console.log("Connected.");
}).catch(error => console.log("error: " + error));

This part "console.log("error: " + error)" returned nothing.

I change the other Postgres server and the output was the same. I change parameters type in ormconfig.json to MySQL everything was OK.

Has somebody an Idea?

Thank you.

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!