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

Exception when prompt is set hidden = true #87

Open
DveMac opened this issue Sep 22, 2014 · 0 comments
Open

Exception when prompt is set hidden = true #87

DveMac opened this issue Sep 22, 2014 · 0 comments

Comments

@DveMac
Copy link

DveMac commented Sep 22, 2014

When the prompt schema includes hidden: true grunt-init errors with the following:

tty.setRawMode: Use 'process.stdin.setRawMode()' instead.

I think this is because grunt-init still uses a version of prompt prior to 0.2.0. tty is deprecated since node 0.8 (http://nodejs.org/api/tty.html#tty_tty_setrawmode_mode). But upgrading to latest prompt causes other errors.

For example:

    init.process({}, [
        {
            name: 'user',
            message: 'Username'
        }, {
            name: 'pass',
            message: 'Password',
            hidden: true
        }
    ], function (err, props) {
        ......
@DveMac DveMac changed the title tty.setRawMode: Use process.stdin.setRawMode() instead. error when settings hidden = true Exception when prompt is set hidden = true Sep 22, 2014
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

1 participant