Found on windows powershell is $env:NODE_TLS_REJECT_UNAUTHORIZED=0 instead of set
$env:NODE_TLS_REJECT_UNAUTHORIZED=0