yo icon indicating copy to clipboard operation
yo copied to clipboard

Feature request: Postinstall yo-doctor disabling way

Open paztis opened this issue 4 years ago • 4 comments

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

paztis avatar Nov 18 '21 21:11 paztis

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?

JoshuaKGoldberg avatar Jan 23 '25 21:01 JoshuaKGoldberg

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

UlisesGascon avatar Jan 24 '25 10:01 UlisesGascon

Hi guys. Any progress on this 4 years after ?

paztis avatar Mar 07 '25 10:03 paztis

If and when progress happens, you'll see it linked in this issue 🙂

We marked it as 'actionable' in January and so anybody can send a PR to add it in. If you're motivated to send a PR we'd be happy to review it.

JoshuaKGoldberg avatar Mar 07 '25 12:03 JoshuaKGoldberg