visionmedia / node-progress

Flexible ascii progress bar for nodejs
MIT License
2.97k stars 221 forks source link

running the example in the README, doesn't work on windows #45

Closed jhaynie closed 10 years ago

jhaynie commented 10 years ago

(using cygwin)

$ node test.js

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: read ENOTCONN
    at errnoException (net.js:901:11)
    at Socket._read (net.js:391:21)
    at Socket.Readable.read (_stream_readable.js:320:10)
    at Socket.read (net.js:293:43)
    at new Socket (net.js:185:10)
    at process.stdin (node.js:660:19)
    at new ProgressBar (C:\cygwin64\home\Thomas Anderson\hyperloop\node_modules\progress\lib\node-progress.js:42:19)
    at ClientRequest.<anonymous> (C:\cygwin64\home\Thomas Anderson\hyperloop\test.js:14:13)
    at ClientRequest.EventEmitter.emit (events.js:95:17)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1669:21)

seems to be related to setting up process.stdin in readline.

works fine under normal windows console.

jhaynie commented 10 years ago

found this which seems to say node and cygwin don't mesh at all. http://stackoverflow.com/questions/17297422/trouble-with-starting-node-js-from-a-cygwin-console maybe not worth fixing :)

hallas commented 10 years ago

yeah, sorry