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

Feature request: Postinstall yo-doctor disabling way #714

Open
paztis opened this issue Nov 18, 2021 · 2 comments
Open

Feature request: Postinstall yo-doctor disabling way #714

paztis opened this issue Nov 18, 2021 · 2 comments

Comments

@paztis
Copy link

paztis commented Nov 18, 2021

Type of issue

I use yeoman over a private network without internet access.
I point to a private repository (not npm) that contains all the needed modules. Environment is fully controlled.

Postinstall of yo-doctor Tris to reach internet to check the versions.

In my case it is useless and it is not possible to access to internet.

I would like a way to disable the Postinstall process to avoid these useless checks
An env var like YO_DOCTOR_DISABLE might control it.

I don't want to disable all the postinstall as other modules need it. But for yeoman it is not mandatory, just informative.

Because of it, all my Jenkins installs, docker install take more time and I try to limit it.

Is it possible to do it ?

Moreover what are the internet calls that are done ? Perhaps they can be done by launching subprocess with npm info command to correctly support alternative repositories instead of checking by yourself ?

Thanks

@JoshuaKGoldberg
Copy link

This is a good example of an issue that could be split out from #145's suggestions around offline mode support.

cc @UlisesGascon - I can see this being useful. Allowing an env var like YO_DOCTOR_DISABLE to turn off yo doctor in postinstalls seems reasonable to me. WDYT?

@UlisesGascon
Copy link
Member

I like this feature, let's add it to the backlog 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

3 participants