Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

Add option to configure PROXY for the system #23

Open
derneuere opened this issue Oct 20, 2021 · 0 comments
Open

Add option to configure PROXY for the system #23

derneuere opened this issue Oct 20, 2021 · 0 comments

Comments

@derneuere
Copy link
Member

If a system is behind a proxy, then the "npm install" commands does not honour the proxy global proxy settings on the machine, so it can't reach the https://registry.npmjs.org. I suggest that the proxy be set as optional variables at the top of install-librephotos.sh and then used in commands something like below just before the 'npm install' commands if PROXY is not blank.

npm config set proxy http://$PROXY:$PROXY_PORT
npm config set https-proxy http://$PROXY:$PROXY_PORT

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