From b8a4f1e98141246c0d31daaafb86a96e39f185be Mon Sep 17 00:00:00 2001 From: cat_shark <1716967236@qq.com> Date: Wed, 27 May 2026 23:35:38 +0800 Subject: [PATCH] fix: resolve npm cache EACCES in Jenkins pipeline --- Jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 84eee9b..dc9ed96 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,6 +16,7 @@ pipeline { steps { sh ''' npm config set cache /.npm + chown -R $(id -u):$(id -g) /.npm 2>/dev/null || true npm install ''' } @@ -30,6 +31,7 @@ pipeline { } steps { sh ''' + chown -R $(id -u):$(id -g) /.npm 2>/dev/null || true npm run type-check npm run build '''