question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

proxy not forwarded to NPM

See original GitHub issue

When 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:open
  • Created 6 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

2reactions
8ackercommented, May 8, 2020

I had a similar issue and by providing the maven args -DproxyHost=proxy.url -DproxyPort=3128 it worked for me

1reaction
Cavva79commented, Mar 20, 2018

try my fix in #683 It passes HTTPS_PROXY, HTTP_PROXY as environment variables

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found