ndb icon indicating copy to clipboard operation
ndb copied to clipboard

Error: read ECONNRESET when starting ndb on ubuntu

Open Ravi-Rajpurohit opened this issue 4 years ago • 6 comments

Steps to reproduce

Tell us about your environment:

  • ndb version: 1.1.5
  • Platform / OS version: ubuntu/18.04
  • Node.js version: 12.16.3

What steps will reproduce the problem?

ndb filename.js OR ndb npm run script

Please include code that reproduces the issue.

  1. ndb filename.js
  2. ndb npm run script

What is the expected result?

ndb should start the debugger

What happens instead?

ndb throws an error:

events.js:287 throw er; // Unhandled 'error' event ^

Error: read ECONNRESET at Pipe.onStreamRead (internal/stream_base_commons.js:205:27) Emitted 'error' event on Socket instance at: at emitErrorNT (internal/streams/destroy.js:92:8) at emitErrorAndCloseNT (internal/streams/destroy.js:60:3) at processTicksAndRejections (internal/process/task_queues.js:84:21) { errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' }

Ravi-Rajpurohit avatar May 15 '20 10:05 Ravi-Rajpurohit

Same exact error for me. Same system exactly. No luck so far in resolving.

hcgaron avatar May 19 '20 03:05 hcgaron

It works with yarn BTW..

Ravi-Rajpurohit avatar May 29 '20 19:05 Ravi-Rajpurohit

Is because Chrome cannot be run as root by default. A workaround is to install ndb in a directory that doesn't require elevated permissions. For example npm install -g --prefix=$HOME/.npm ndb and then add the npm bin folder to the path export PATH="$HOME/.npm/bin:$PATH".

nicomt avatar Jul 05 '20 02:07 nicomt

@nicomt Thank you, this solution is perfect

ksully1993 avatar Oct 16 '20 20:10 ksully1993

That did seem to work for me, however, I needed to uninstall my existing ndb and brew uninstall chromium.

att14 avatar Jul 02 '21 20:07 att14

Is because Chrome cannot be run as root by default. A workaround is to install ndb in a directory that doesn't require elevated permissions. For example npm install -g --prefix=$HOME/.npm ndb and then add the npm bin folder to the path export PATH="$HOME/.npm/bin:$PATH".

Thanks so much working for me!

AmritPant avatar Jul 19 '22 06:07 AmritPant