# Updating/installing any module takes a lot of time

**URL:** <https://discourse.nodered.org/t/updating-installing-any-module-takes-a-lot-of-time/52916>\
**Category:** General\
**Created:** [28 October 2021 21:43 UTC](https://discourse.nodered.org/t/updating-installing-any-module-takes-a-lot-of-time/52916 "2021-10-28T21:43:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JanickGers85](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/janickgers85/32/50148_2.png) [@JanickGers85](https://discourse.nodered.org/u/JanickGers85)\
**Post date:** [28 October 2021 21:43 UTC](https://discourse.nodered.org/t/updating-installing-any-module-takes-a-lot-of-time/52916/1 "2021-10-28T21:43:30Z")

</div>

Hello there!  
lately I can't updating/installing any module takes a lot of time; here a few info:

```auto
28 Oct 23:20:45 - [info] Node-RED version: v2.1.3
28 Oct 23:20:45 - [info] Node.js version: v14.18.1
28 Oct 23:20:45 - [info] Linux 5.10.0-9-amd64 x64 LE

```

My instance run on Docker on a Debian 11 machine, here my docker-compose file:

```auto
  node-red:
    container_name: nuc_nodered
    ports:
      - "1881:1880"
    volumes:
      - ./docker/nodered:/data
      - /etc/localtime:/etc/localtime:ro
    image: nodered/node-red:latest
    restart: unless-stopped
    environment:
      - TZ=Europe/Rome

```

I've activated _trace_ level log, when I update a module with the palette this is the log output

```auto
28 Oct 23:32:53 - [trace] npm["install","--no-audit","--no-update-notifier","--no-fund","--save","--save-prefix=~","--production","--engine-strict","node-red-contrib-deconz@2.0.8"]
28 Oct 23:32:53 - [debug] npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-deconz@2.0.8
...
28 Oct 23:37:56 - [debug] [err] npm
28 Oct 23:37:56 - [debug] [err] WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
28 Oct 23:37:56 - [debug] [err] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
28 Oct 23:37:56 - [debug] [err] npm WARN
28 Oct 23:37:56 - [debug] [err] optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents):
28 Oct 23:37:56 - [debug] [err] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
28 Oct 23:37:56 - [debug] [err]
28 Oct 23:37:56 - [debug] [out] + node-red-contrib-deconz@2.0.8
28 Oct 23:37:56 - [debug] [out] updated 3 packages in 302.494s
28 Oct 23:37:56 - [debug] rc=0
28 Oct 23:37:56 - [info] Upgraded module: node-red-contrib-deconz. Restart Node-RED to use the new version
28 Oct 23:37:56 - [trace] runtime event: {"id":"restart-required","payload":{"type":"warning","text":"notification.warnings.restartRequired"},"retain":true}
28 Oct 23:37:56 - [trace] utils.writeFile - copied /data/.config.nodes.json TO /data/.config.nodes.json.backup
28 Oct 23:37:56 - [trace] utils.writeFile - written content to /data/.config.nodes.json.$$$
28 Oct 23:37:56 - [trace] utils.writeFile - renamed /data/.config.nodes.json.$$$ to /data/.config.nodes.json
28 Oct 23:37:56 - [trace] runtime event: {"id":"node/upgraded","retain":false,"payload":{"module":"node-red-contrib-deconz","version":"2.0.8"}}

```

Five minutes for a single package: is it normal?  
With previous version of NR it was much faster.

EDIT:  
Now all my modules update fails after a random number of minutes with ETIMEDOUT errors, like the following

`Miscellaneous Warning ETIMEDOUT: request to https://registry.npmjs.org/lodash.random failed, reason: connect ETIMEDOUT`  
I tried a wget [https://registry.npmjs.org/lodash.random](https://registry.npmjs.org/lodash.random) and it randomly work.

```auto
29 Oct 00:18:02 - [debug] [err] npm
29 Oct 00:18:02 - [debug] [err] WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ETIMEDOUT: request to https://registry.npmjs.org/has-symbols failed, reason: connect ETIMEDOUT 104.16.16.35:443

```

Thanks!

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [29 October 2021 06:26 UTC](https://discourse.nodered.org/t/updating-installing-any-module-takes-a-lot-of-time/52916/2 "2021-10-29T06:26:47Z")

</div>

What hardware are you running on?

Do you have a good internet connection of reasonable speed?

Are you running in a home environment or corporate, possibly with firewalls and so on?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [28 December 2021 06:27 UTC](https://discourse.nodered.org/t/updating-installing-any-module-takes-a-lot-of-time/52916/3 "2021-12-28T06:27:27Z")

</div>

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