node-dos2unix
node-dos2unix copied to clipboard
dow2unix.js line 81: this.read(), no this function at all
There is no such function at all. I can't run the task correctly...
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)
I too getting the same error.
Try this package instead, guys: https://www.npmjs.com/package/@dpwolfe/dos2unix