简体   繁体   中英

Ndb debugger for node.js won't start

Im trying to start the ndb debugger from VS code, but every time i run the "ndb server.js" command, a window opens and closes immediately and i get this error:

node:events:491
      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at Pipe.onStreamRead (node:internal/stream_base_commons:217:20) Emitted 'error' event on Socket instance at:
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {   errno: -104,   code:
'ECONNRESET',   syscall: 'read' }

My OS is ubuntu 22.04. I've tried running these two commands from https://github.com/GoogleChromeLabs/ndb/issues/312 , but no luck.

npm install -g --prefix=$HOME/.npm ndb 
export PATH="$HOME/.npm/bin:$PATH"

I have heard that this package hasn't been kept up since 2019. I wonder if doesn't work the way it used to.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM