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

TS issue when using as an NPM script in Ubuntu #6

Closed
michael-siek opened this issue Feb 8, 2022 · 2 comments
Closed

TS issue when using as an NPM script in Ubuntu #6

michael-siek opened this issue Feb 8, 2022 · 2 comments

Comments

@michael-siek
Copy link
Contributor

It looks like when trying to use this as an NPM script in Ubuntu CI there is a type issue where cursorTo() is not a function.

process.stdout.cursorTo(lastChunk.length - 1);
                       ^
TypeError: process.stdout.cursorTo is not a function
@straker
Copy link
Owner

straker commented Feb 8, 2022

Hu. What version of node is the Ubuntu CI running? I can't find any docs for stdout.cursorTo, but it might have been deprecated and so they didn't ever add docs?

I'll see if the replacement tty could work? But it says that tty.WriteSteam:

Represents the writable side of a TTY. In normal circumstances, process.stdout and process.stderr will be the only tty.WriteStream instances created for a Node.js process and there should be no reason to create additional instances.

So I'm not sure why process.stdout, which supposedly is a tty.WriteStream instance, wouldn't have cursorTo

@michael-siek
Copy link
Contributor Author

closing I don't think this is required anymore

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

2 participants