node npm ssl配置与使用指南
在使用 npm-ssl 时,需要配置 SSL 文件。按照以下步骤进行配置:
- 设置私有注册表的 SSL 配置:
npm set ssl.profiles.NAME.registry https://your.private.registry/
- 设置证书文件:
npm set ssl.profiles.NAME.cafile /path/to/your-ca.crt
- 设置客户端密钥文件:
npm set ssl.profiles.NAME.keyfile /path/to/your-client-key.pem
- 设置客户端证书文件:
npm set ssl.profiles.NAME.certfile /path/to/your-client-cert.crt
激活个人资料:
使用 **npm-ssl** 来应用当前活动配置文件,替代 `npm` 命令:
下载地址
用户评论