nodejs / corepack

Zero-runtime-dependency package acting as bridge between Node projects and their package managers
MIT License
2.52k stars 165 forks source link

Option to disable SSL verification #355

Closed mirayashi closed 8 months ago

mirayashi commented 8 months ago

We are using a custom NPM registry, and the SSL cert is self-signed so we get Error: self-signed certificate in certificate chain. It would be nice to add an environment variable like COREPACK_SSL_VERIFY that we could set to false in order to avoid such errors.

merceyz commented 8 months ago

That error is thrown by Node.js, you should be able to set NODE_TLS_REJECT_UNAUTHORIZED=0 to ignore it.

mirayashi commented 8 months ago

That error is thrown by Node.js, you should be able to set NODE_TLS_REJECT_UNAUTHORIZED=0 to ignore it.

This worked well, thank you!