by staticassertion · 5y ago · 0 comments
It seems you have to set an environment variable,
NODE_OPTIONS=--tls-max-v1.2
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.jsonI've done this for Rust for a long time by just setting a flag in `project/.cargo/config.toml`
[http]
ssl-version.min = "tlsv1.2"
(side note - I've had 0 issues with tlsv1.3 in cargo with crates.io)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.