Error using npm on Windows shell on company proxy

2019-08-12 08:29发布

问题:

I'm trying to install phonegap using

npm install -g phonegap

I'm on proxy so I set

npm config set proxy http://username:password@proxy.company.com:8080
npm config set https-proxy https://username:password@proxy.company.com:8080

The error I get when I try to install via npm install -g phonegap

Assertion failed (wrap->ssl_) != (nullprt), file src\tls_wrap.cc, line 320