Closed cyberkiko closed 8 years ago
What Node version are you on?
I'm using node 5.6.0, npm 3.6.0
process.stdout.cursorTo
only exists when stdout is a tty:
$ node --version
v4.3.0
$ node -e 'console.error(process.stdout.cursorTo)'
[Function]
$ node -e 'console.error(process.stdout.cursorTo)' > /dev/null
undefined
Hmm I guess a simple process.stderr.isTTY
check should fix it
Should be fixed. Thanks!
Now it works, thanks ;)
This is the error:
/usr/lib/node_modules/ied/lib/progress.js:30 process.stderr.cursorTo(0) ^ TypeError: Object # has no method 'cursorTo'
at Object.progress.draw (/usr/lib/node_modules/ied/lib/progress.js:30:20)
at Object.progress.start (/usr/lib/node_modules/ied/lib/progress.js:23:10)
at fetchFromRegistry (/usr/lib/node_modules/ied/lib/fetch.js:16:12)
at ReadStream. (/usr/lib/node_modules/ied/lib/fetch.js:70:5)
at ReadStream.emit (events.js:95:17)
at fs.js:1513:12
at Object.oncomplete (fs.js:107:15)