lshgdut / essay

随笔记录
0 stars 0 forks source link

让npm忽略证书校验 #7

Open lshgdut opened 6 years ago

lshgdut commented 6 years ago

设置环境变量解决

NODE_TLS_REJECT_UNAUTHORIZED=0

nodejs的源码位置:
stackoverflow上的答案:

https://stackoverflow.com/questions/45640912/node-js-dependency-installation-giving-self-signed-certificate-in-certificate-c