Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Error: read ECONNRESET when starting ndb on ubuntu #312

Open
Ravi-Rajpurohit opened this issue May 15, 2020 · 6 comments
Open

Error: read ECONNRESET when starting ndb on ubuntu #312

Ravi-Rajpurohit opened this issue May 15, 2020 · 6 comments

Comments

@Ravi-Rajpurohit
Copy link

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'
}

@hcgaron
Copy link

hcgaron commented May 19, 2020

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

@Ravi-Rajpurohit
Copy link
Author

It works with yarn BTW..

@nicomt
Copy link

nicomt commented Jul 5, 2020

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".

@ksully1993
Copy link

@nicomt Thank you, this solution is perfect

@att14
Copy link

att14 commented Jul 2, 2021

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

@AmritPant
Copy link

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants