Skip to content

Crashes terminal on OS X and refuses subsequent input after prompting more than once (Node 8 only) #13647

Closed
@adamreisnz

Description

@adamreisnz

Version: 8.1.0
Platform: OS X, Darwin Kernel Version 15.5.0: Tue Apr 19 18:36:36 PDT 2016; root:xnu-3248.50.21~8/RELEASE_X86_64 x86_64

There's an issue in Node 8 with apps that ask the user for input. The first input works fine, but afterwards, with subsequent input requests, the user can't type anything into the terminal window anymore, and even CTRL-C is not responding, forcing you to close the window.

At first I thought the issue might be with the package prompt that I was using, so I switched to inquirer and found it was affected as well. When I then tried to create an isolated test case, I found that the issue affects npm init as well.

The first input works ok, but then when asked for the version, you can't press ENTER anymore and the terminal refuses any subsequent input:

image

When switching back to Node 7.10.0 it works as expected again, so it definitely seems like a core Node issue.

Happy to provide further information if needed, but it is fairly easy to reproduce with npm init.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateIssues and PRs that are duplicates of other issues or PRs.macosIssues and PRs related to the macOS platform / OSX.readlineIssues and PRs related to the built-in readline module.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions