hugo-bin icon indicating copy to clipboard operation
hugo-bin copied to clipboard

Certificate issue behind company proxy

Open MaartenPetiet opened this issue 7 years ago • 2 comments

When I run npm install hugo-bin behind our company proxy it fails with following error:

> [email protected] postinstall D:\SOURCES\Netlify.VDW\node_modules\hugo-bin
> del-cli vendor && node lib/install

x unable to get local issuer certificate
x Hugo binary installation failed

We can see that the module is trying to download the following file: https://github.com/spf13/hugo/releases/download/v0.36.1/hugo_0.36.1_Windows-64bit.zip

When I try to download this file via my browser, it succeeds. But hugo-bin seems to use the module bin-wrapper which uses the module download which fails.

Even after setting strict-ssl to false (npm config set strict-ssl false) the issue continues.

I'm running Windows 2012 R2 and tried it with nodejs 8.11.3 and 10.8.0.

MaartenPetiet avatar Aug 08 '18 11:08 MaartenPetiet

@MaartenPetiet Do you have same issue when run the download module like following?

const download = require('download');
 
download('https://github.com/spf13/hugo/releases/download/v0.36.1/hugo_0.36.1_Windows-64bit.zip', 'dist').then(() => {
    console.log('done!');
});

satoshun00 avatar Oct 07 '18 12:10 satoshun00

@satoshun00 yes same issue.

MaartenPetiet avatar Oct 12 '18 15:10 MaartenPetiet

This should be fixed after #120, >= v0.90.0.

XhmikosR avatar May 22 '23 19:05 XhmikosR