So I was curious and tried to figure out how to, client side, enforce TLS 1.2+ for npm. It is surprisingly not straightforward to me. I also had an annoying time due to 'npm' being the tool name and the repo name.<p>It seems you have to set an environment variable,<p><pre><code> NODE_OPTIONS=--tls-max-v1.2
</code></pre>
But that's for node in general and I'm not sure if it even works for npm. I was expecting this to be something I could do in a package.json<p>I've done this for Rust for a long time by just setting a flag in `project/.cargo/config.toml`<p><pre><code> [http]
ssl-version.min = "tlsv1.2"
</code></pre>
(side note - I've had 0 issues with tlsv1.3 in cargo with crates.io)<p>I also wasn't able to figure out how to do this for `pip`. I honestly expected this to be super straightforward, but I guess I was sort of spoiled by how easy it was with cargo.