我有一个 https 协议下的私人 Verdaccio 服务器。我的证书是由 certbot 生成的,最近我不得不更新它。但是现在 npm 给我一个错误
npm ERR! code UNABLE_TO_VERIFY_LEAF_SIGNATURE
npm ERR! errno UNABLE_TO_VERIFY_LEAF_SIGNATURE
npm ERR! request to https://myserver.com/-/v1/login failed, reason: unable to verify the first certificate
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\myusername\AppData\Roaming\npm-cache\_logs\2019-02-21T16_54_52_853Z-debug.log
出于安全原因,我不想这样做 我该npm set strict-ssl false
如何解决?