mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-18 16:32:17 +00:00
npm clean dont forward to std
This commit is contained in:
@@ -817,9 +817,10 @@ cleanup_lxc() {
|
|||||||
|
|
||||||
# Node.js npm
|
# Node.js npm
|
||||||
if command -v npm &>/dev/null; then
|
if command -v npm &>/dev/null; then
|
||||||
$STD npm cache verify 2>/dev/null || true
|
npm cache verify &>/dev/null || true
|
||||||
# Clean cache with fallback to manual removal if command fails
|
# Directly remove cache directory instead of using npm cache clean
|
||||||
$STD npm cache clean --force 2>/dev/null || rm -rf /root/.npm/_cacache 2>/dev/null || true
|
# which can fail with ENOTEMPTY errors
|
||||||
|
rm -rf /root/.npm/_cacache 2>/dev/null || true
|
||||||
fi
|
fi
|
||||||
# Node.js yarn
|
# Node.js yarn
|
||||||
if command -v yarn &>/dev/null; then $STD yarn cache clean || true; fi
|
if command -v yarn &>/dev/null; then $STD yarn cache clean || true; fi
|
||||||
|
|||||||
Reference in New Issue
Block a user