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

fix npx for non-interactive shells #1936

Closed
wants to merge 1 commit into from

Conversation

nlf
Copy link
Contributor

@nlf nlf commented Oct 9, 2020

Currently npx (and npm exec) will fail with a cb() never called error when run in a non-interactive way and not providing an explicit -y due to the prompt. These changes make it so that instead of prompting in non-interactive shells, we log a warning and then continue as though the user answered yes to the prompt making things behave much more like npm 6

@nlf nlf requested a review from a team as a code owner October 9, 2020 15:58
Copy link
Contributor

@MylesBorins MylesBorins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RSLGTM

@darcyclarke darcyclarke added the Release 7.x work is associated with a specific npm 7 release label Oct 9, 2020
ruyadorno pushed a commit that referenced this pull request Oct 9, 2020
PR-URL: #1936
Credit: @nlf
Close: #1936
Reviewed-by: @ruyadorno
@ruyadorno
Copy link
Contributor

landed in e859fba

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release 7.x work is associated with a specific npm 7 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants