How to setup node-gyp behide a proxy

11,961

I am stuck behind a corporate firewall. The only solution I could find was to override the default SSL CA files with the company provided ones.

Solution using company ssl CA files: node-gyp configure --cafile="/path/to/mycafile.pem"

Share:
11,961
JimiOr2
Author by

JimiOr2

Mobility development lover!

Updated on July 21, 2022

Comments

  • JimiOr2
    JimiOr2 almost 2 years

    When i install karma that use node-gyp to fetch package and do rebuild, and I got a "gyp Error!: connect ECONNERFUSED", THE problem whey node-gyp will connect to internet and my environment is behind corporate proxy, I could download package from npm and I setup npm's proxy already.

    My environment is WINDOWS 7 64 bit.

    I found no where to setting node-gyp in proxy. any idea for that?

    [Update] Thanks. I got how to setup this, command as below node-gyp configure --proxy=http://proxy.address.com:port

    node-gyp connect ECONNERFUSED