Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[BUG] npx npm_config_yes=true or --yes not working as expected and npx still requires confirmation for installation #5123

Closed
ekelvin opened this issue Jul 4, 2022 · 2 comments

Comments

@ekelvin
Copy link

ekelvin commented Jul 4, 2022

tried npm_config_yes=true
tried --yes
and I still get requires confirmation for installation
image

context:
$ npm -v
8.11.0
$ node -v
v16.15.1

@ekelvin
Copy link
Author

ekelvin commented Jul 12, 2022

Can anyone help on this? Any workaround?

@ekelvin ekelvin changed the title npx npm_config_yes=true or --yes not working as expected and npx still requires confirmation for installation [BUG] npx npm_config_yes=true or --yes not working as expected and npx still requires confirmation for installation Jul 12, 2022
@nlf
Copy link
Contributor

nlf commented Jul 13, 2022

the prompts you're seeing aren't coming from npm, it looks like the expo package itself is printing those and offering to globally install packages for you. you can see that here: https://github.com/expo/expo/blob/8a782c0f0d548080e0c935a9cd94c36a600af01d/packages/expo/bin/cli.js#L24-L29

unfortunately we can't help much with that. i'm going to close this since it's not our bug, but i do think it would be a good idea for you to open an issue in their repo asking them to support some form of skipping that prompt.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants