# Facing issue while configuring the node modules and proxy to the server

**URL:** <https://community.n8n.io/t/facing-issue-while-configuring-the-node-modules-and-proxy-to-the-server/92491>\
**Category:** Questions\
**Created:** [March 25, 2025, 8:59am UTC](https://community.n8n.io/t/facing-issue-while-configuring-the-node-modules-and-proxy-to-the-server/92491 "2025-03-25T08:59:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manikanta\_T](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/manikanta_t/32/67658_2.png) [@Manikanta\_T](https://community.n8n.io/u/Manikanta_T)\
**Post date:** [March 25, 2025, 8:59am UTC](https://community.n8n.io/t/facing-issue-while-configuring-the-node-modules-and-proxy-to-the-server/92491/1 "2025-03-25T08:59:27Z")

</div>

I updated the Node modules and configured the n8n proxy correctly. It’s working fine in the terminal, and I can confirm it using `npm list` inside the container. The n8n proxy is also responding correctly. However, when I check the same through Postman or access the website URL, it’s not working — specifically, requests related to `node_modules` are failing.

Below is my n8n setup with the environment variables and Dockerfile. Any suggestions on resolving this issue would be appreciated.  
docker-compose.yaml:

```auto
  n8n:
    build: .
    restart: always
    ports:
      - 5678:5678
    environment:
      - N8N_BASIC_AUTH_ACTIVE=true
      - N8N_PORT=5678
      - N8N_BASIC_AUTH_USER=admin
      - N8N_BASIC_AUTH_PASSWORD=xxxxxxxxx
      - GENERIC_TIMEZONE=UTC
      - WEBHOOK_URL=https://xxxxxxx.com
      - N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
      - NODE_FUNCTION_ALLOW_EXTERNAL=playwright,agentql
      - NODE_FUNCTION_ALLOW_BUILTIN=*
      - NODE_PATH=/usr/local/lib/node_modules
      - N8N_PROXY=${N8N_PROXY}

```

```auto
Dockerfile:
FROM n8nio/n8n:1.80.0
USER root
RUN npm install -g express playwright agentql
USER node

```

 ![Screenshot from 2025-03-25 16-03-17](https://europe1.discourse-cdn.com/n8n/original/3X/8/c/8cd4b4a2d2cafe66c99427ae1458b03bc11f03a9.png)

---

<div class="post-metadata">

**Author:** ![hubschrauber](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/hubschrauber/32/46788_2.png) [@hubschrauber](https://community.n8n.io/u/hubschrauber)\
**Post date:** [March 25, 2025, 4:05pm UTC](https://community.n8n.io/t/facing-issue-while-configuring-the-node-modules-and-proxy-to-the-server/92491/2 "2025-03-25T16:05:22Z")

</div>

Where did you find reference to an environment variable named `N8N_PROXY`? The only one I could find was `N8N_PROXY_HOPS`. What do you expect it to do?

[Search Source Code for N8N\_PROXY](https://github.com/search?q=repo%3An8n-io%2Fn8n%20N8N_PROXY&type=code)

---

<div class="post-metadata">

**Author:** ![Manikanta\_T](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/manikanta_t/32/67658_2.png) [@Manikanta\_T](https://community.n8n.io/u/Manikanta_T)\
**Post date:** [March 26, 2025, 5:34am UTC](https://community.n8n.io/t/facing-issue-while-configuring-the-node-modules-and-proxy-to-the-server/92491/3 "2025-03-26T05:34:04Z")

</div>

Its nothing but updating proxy url to the n8n, which i found from some where from google, to update oxylabs residential proxy url,its working fine in the terminal but not working in the ui, it not working in the client side(frontend).

---

<div class="post-metadata">

**Author:** ![hubschrauber](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/hubschrauber/32/46788_2.png) [@hubschrauber](https://community.n8n.io/u/hubschrauber)\
**Post date:** [March 26, 2025, 2:00pm UTC](https://community.n8n.io/t/facing-issue-while-configuring-the-node-modules-and-proxy-to-the-server/92491/4 "2025-03-26T14:00:23Z")

</div>

Maybe `N8N_PROXY` is an old version of what is now `WEBHOOK_URL`, `N8n_PORT`, and/or `N8N_HOST`. I suspect it isn’t doing anything, or at least it isn’t doing what you think it should be doing.

I would stick with only the things currently in the [Deployment Environment Variables documentation](https://docs.n8n.io/hosting/configuration/environment-variables/deployment/). The ones that **might** help in your situation are:

- `N8N_HOST`
- `N8N_TUNNEL_SUBDOMAIN`
- `WEBHOOK_URL`
- `N8N_PUBLIC_API_ENDPOINT`

I also noticed that you are running `npm install -g`, while building the docker image, as `root` to install your extra packages. I don’t know the subtleties of how npm works, but it might be worth a try (just to see), to run `npm install` (without the `-g`) as the `node` user. Possibly the file permissions in the container, for npm libs are contributing the troubles.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [June 24, 2025, 2:00pm UTC](https://community.n8n.io/t/facing-issue-while-configuring-the-node-modules-and-proxy-to-the-server/92491/5 "2025-06-24T14:00:43Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
