Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pipe doesn't work #1

Open
amazingandyyy opened this issue Aug 17, 2019 · 0 comments
Open

pipe doesn't work #1

amazingandyyy opened this issue Aug 17, 2019 · 0 comments

Comments

@amazingandyyy
Copy link
Member

stream❯ node-run index.js | head -c5                            nodelab/git/master !
events.js:167
      throw er; // Unhandled 'error' event
      ^

Error: write EPIPE
    at WriteWrap.afterWrite [as oncomplete] (net.js:836:14)
Emitted 'error' event at:
    at Socket.onerror (_stream_readable.js:690:12)
    at Socket.emit (events.js:182:13)
    at onwriteError (_stream_writable.js:431:12)
    at onwrite (_stream_writable.js:456:5)
    at _destroy (internal/streams/destroy.js:40:7)
    at Socket.stdout._destroy (internal/process/stdio.js:25:7)
    at Socket.destroy (internal/streams/destroy.js:32:8)
    at WriteWrap.afterWrite [as oncomplete] (net.js:838:10)
stream❯ node index.js | head -c5                                nodelab/git/master !
abcde
_read() called 5 times
stream❯

| works for node but not node-run.

Add support for pipe to next readable.

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

No branches or pull requests

1 participant