From 503fc0e6e2d390e0df9b6ce74bbee6e698b3fe4d Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 18 Dec 2025 15:01:39 +0100 Subject: [PATCH] npm clean dont forward to std --- misc/core.func | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/misc/core.func b/misc/core.func index c1c4efddc..ab177af70 100644 --- a/misc/core.func +++ b/misc/core.func @@ -817,9 +817,10 @@ cleanup_lxc() { # Node.js npm if command -v npm &>/dev/null; then - $STD npm cache verify 2>/dev/null || true - # Clean cache with fallback to manual removal if command fails - $STD npm cache clean --force 2>/dev/null || rm -rf /root/.npm/_cacache 2>/dev/null || true + npm cache verify &>/dev/null || true + # Directly remove cache directory instead of using npm cache clean + # which can fail with ENOTEMPTY errors + rm -rf /root/.npm/_cacache 2>/dev/null || true fi # Node.js yarn if command -v yarn &>/dev/null; then $STD yarn cache clean || true; fi