nvm icon indicating copy to clipboard operation
nvm copied to clipboard

Copy system cert configs when installing new versions

Open squarebracket opened this issue 6 years ago • 0 comments

This PR adds support for copying any ca, cert, or cafile configs from the system's npm config file to the newly-installed npm prefix's config. It does this by default, but can be disabled with the --skip-system-certs flag.

Manually tested in sh, bash, and zsh. Also tested in ksh (per CONTRIBUTING.md), but that doesn't seem to work unrelated to my changes.

Any suggestions on how I could approach automated testing for these changes? Specifically, how I would mock out the nvm system exec npm config ls call.

squarebracket avatar Nov 04 '19 20:11 squarebracket