Compare commits

..
Author SHA1 Message Date
MickLesk 07b86d8f4a n8n: update with an empty npm cache and the service stopped
Reinstalling n8n over itself made npm peak at 3.9 GB with a warm cache and
1.4 GB with an empty one; with n8n still running beside it a 2 GB container
was killed (exit 137, six updates in five days). The update now stops n8n
and clears the npm cache first.
2026-12-02 11:34:53 +01:00
+4 -1
View File
@@ -49,8 +49,11 @@ EOF
# n8n-nodes-base 2.46.0 pins both @napi-rs/canvas musl binaries as hard
# dependencies, which no os/cpu/libc combination can satisfy. Drop --force
# once upstream makes them optional again.
# npm unpacking n8n from a warm cache peaks at 3.9 GB, from an empty one at 1.4 GB.
systemctl stop n8n
$STD npm cache clean --force
$STD npm install -g n8n@latest --force
systemctl restart n8n
systemctl start n8n
msg_ok "Updated n8n"
msg_ok "Updated successfully!"
exit