Unable to install ilotrb@1.3.5 due to firewall
yamarane opened this issue · 1 comments
I am trying to install node-saas which has ilotrb@1.3.5 as sub-dependency but ilotrb is depends on binaries which hosted on github.
Due to firewall we are unable to download that binaries. Do we have any workaround for this?
(or)
Is there a way to override this host with different host?
https://github.com/MayhemYDG/iltorb/blob/6299dd80bcc13861eb398871808e290abcb320ba/package.json#L60
Yes, there are a couple of things:
-
By default, if it is unable to download the pre-compiled binaries, it will fallback to compiling the binaries locally. This will require you to have the build tools required installed on your machine.
-
It is possible to override the host on v1.3.5+ using the following methods, since that release was when we first fixed the module name. I'll add this to the README later.
a) with an ENV variable (could be stored in the local .npmrc file as well)
npm_config_iltorb_binary_host_mirror=https://... npm install iltorb
b) with an additional argument
npm install iltorb --iltorb_binary_host_mirror=https://...
Note: You would still need to take care of syncing the binaries, hosting of the binaries, and make sure that the requests are valid yourself. For example, setting the mirror link to
https://mirror.com/iltorb/
, you would need to create a subdirectory of theversion
with all of the binaries stored in there.