Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Document or Add config for prebuild-install downloads from private repository. #411

Open
ctm8788 opened this issue Aug 24, 2021 · 1 comment

Comments

@ctm8788
Copy link

ctm8788 commented Aug 24, 2021

Summary

We develop behind a corporate network/firewall that has traffic to external sites proxied. We also have the npm regististries mirrored internally.

One of our dependencies is for node-keytar and it is attempting to download straight for github.
prebuild-install http request GET https://github.com/atom/node-keytar/releases/download/v7.7.0/keytar-v7.7.0-napi-v3-linux-x64.tar.gz

This request eventually times out.

For similar issues, I'm able to set a config in the .npmrc file and it'll download the requested package from our servers instead of going outside the network.
e.g.
npm config set grpc_node_binary_host_mirror https://repository.internal.com/repository/googleapis-storage/node-precompiled-binaries.grpc.io/

It would be nice if this was an option for node-keytar, or if it is...that it was documented.

Otherwise, I have to wait for the request to timeout (15 minutes) and then it looks like it builds it locally.

Motivation

This is useful build systems that don't have access to the internet directly and rely on internal repositories.

@ctm8788
Copy link
Author

ctm8788 commented Aug 24, 2021

13:28:40 13:28:40 > [email protected] install /root/app/node_modules/keytar 13:28:40 > prebuild-install || npm run build 13:28:40 13:28:40 prebuild-install info begin Prebuild-install version 6.1.4 13:28:40 prebuild-install info looking for local prebuild @ prebuilds/keytar-v7.7.0-napi-v3-linux-x64.tar.gz 13:28:40 prebuild-install info looking for cached prebuild @ /root/.npm/_prebuilds/5cfba9-keytar-v7.7.0-napi-v3-linux-x64.tar.gz 13:28:40 prebuild-install http request GET https://github.com/atom/node-keytar/releases/download/v7.7.0/keytar-v7.7.0-napi-v3-linux-x64.tar.gz 13:44:32 prebuild-install WARN install read ETIMEDOUT 13:44:33 npm info it worked if it ends with ok 13:44:33 npm verb cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'build' ] 13:44:33 npm info using [email protected] 13:44:33 npm info using [email protected]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant