question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`pg` < 8 causes node 14+ to crash

See original GitHub issue

Issue type:

[ ] question [x] bug report [ ] feature request [ ] documentation issue

Database system/driver:

[ ] cordova [ ] mongodb [ ] mssql [ ] mysql / mariadb [ ] oracle [x] postgres [ ] cockroachdb [ ] sqlite [ ] sqljs [ ] react-native [ ] expo

TypeORM version:

[x] latest [ ] @next [ ] 0.x.x (or put your version here)

Steps to reproduce or a small repository showing the problem:

Today, homebrew updated my Mac to Node 14. My typeorm code immediately stopped working, and watching Little Snitch (extra firewall), I could see that node was not connecting in any way to the Postgres server. Dropping back to node 12 solved the issue.

I tried rebuilding the node_modules directory.

Anything else I can do to fix this locally?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:25
  • Comments:22 (3 by maintainers)

github_iconTop GitHub Comments

104reactions
smber1commented, Apr 26, 2020

Oh, bumping to pg@8.0.3 looks like it fixes it!

6reactions
smber1commented, Apr 26, 2020

I can confirm this too. Program exits with code 0 during createConnection. Downgrading to Node 12 has fixed it for me too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to prevent your Node.js process from crashing - Medium
The stream closes unexpectedly and… your Node. js process crashes and all the users of your app get errors.
Read more >
Node lessons learned painfully (or why my site crashed)
For folks curious, my bug was rather simple. The code that handled loading a page by the SES token (what you see in...
Read more >
node server crashes #9314 - Asp.Net Zero Support
node server crashes as soon as home page is displayed. C:\Users\Tim\Documents\__ngTTMv800\angular\node_modules\webpack-dev-server\lib\servers\ ...
Read more >
Solving common issues with node-gyp - LogRocket Blog
Many node-gyp issues are actually issues with the toolchain used for building add-on code. We'll categorize these issues to offer solutions.
Read more >
Errors | Node.js v19.3.0 Documentation
<anonymous> (/home/gbusey/actors.js:400:8) at increaseSynergy ... Such exceptions will always cause the Node.js process to crash.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found