node-dos2unix icon indicating copy to clipboard operation
node-dos2unix copied to clipboard

dow2unix.js line 81: this.read(), no this function at all

Open DanielWLam opened this issue 7 years ago • 3 comments

There is no such function at all. I can't run the task correctly...

DanielWLam avatar Mar 03 '17 04:03 DanielWLam

I have a similar problem. It always fails with:

/.../node_modules/dos2unix/lib/dos2unix.js:82
            len = data.length,
                      ^

TypeError: Cannot read property 'length' of null
    at Readable.onReadable (/.../node_modules/dos2unix/lib/dos2unix.js:82:23)
    at emitNone (events.js:86:13)
    at Readable.emit (events.js:185:7)
    at emitReadable_ (_stream_readable.js:432:10)
    at emitReadable (_stream_readable.js:426:7)
    at onEofChunk (_stream_readable.js:411:3)
    at readableAddChunk (_stream_readable.js:153:5)
    at Readable.push (_stream_readable.js:134:10)
    at ReadStream.<anonymous> (_stream_readable.js:780:10)
    at emitNone (events.js:91:20)

martinsik avatar Mar 12 '17 11:03 martinsik

I too getting the same error.

raul1985singh avatar Jun 12 '17 14:06 raul1985singh

Try this package instead, guys: https://www.npmjs.com/package/@dpwolfe/dos2unix

gronostajo avatar Oct 27 '17 11:10 gronostajo