proxy not forwarded to NPM
See original GitHub issueWhen using your plugin for an existing repository in a corporate setup behind a proxy it fails choose the proxy for downloading the node version.
to reproduce
git clone https://github.com/apache/ambari.git
cd ambari
mvn package
The log shows:
Installing node version v4.5.0
[INFO] Downloading https://nodejs.org/dist/v4.5.0/node-v4.5.0-linux-x64.tar.gz to /home/vagrant/.m2/repository/com/github/eirslett/node/4.5.0/node-4.5.0-linux-x64.tar.gz
[INFO] No proxies configured
[INFO] No proxy was configured, downloading directly
and fails to download even though HTTPS_PROXY
/ HTTP_PROXY
are set correctly.
The pom.xml ignores the proxy, but should foraward the HTTP(S)_PROXY environment variable to npm:
<configuration>
<npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
</configuration>
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:6
Top Results From Across the Web
nodejs http-proxy not forwarding put requests - Stack Overflow
nodejs http-proxy not forwarding put requests ... I've made a proxy using the http-proxy and express middlewares. However, it isn't forwarding PUT requests...
Read more >http-proxy - npm
node -http-proxy is an HTTP programmable proxying library that supports websockets. It is suitable for implementing components such as reverse ...
Read more >Proxy and store package metadata for requests forwarded to ...
In the interim, the goal of this issue will be to ensure there is no degradation in the user experience of the npm...
Read more >Reverse Proxy Setup - Verdaccio
Apache and mod_proxy should not decode/encode slashes and leave them as they are: For installing at relative path, /npm , on the server....
Read more >NGINX Proxy Manager is not forwarding to the host - Reddit
I am 100% sure the network is fine. I have NPM in the DMZ and the servers are in the server zone. I...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had a similar issue and by providing the maven args -DproxyHost=proxy.url -DproxyPort=3128 it worked for me
try my fix in #683 It passes HTTPS_PROXY, HTTP_PROXY as environment variables