Hello there!
lately I can't updating/installing any module takes a lot of time; here a few info:
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:
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
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 and it randomly work.
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!