fix: resolve npm cache EACCES in Jenkins pipeline

This commit is contained in:
2026-05-27 23:35:38 +08:00
parent aa5e5a654f
commit b8a4f1e981
Vendored
+2
View File
@@ -16,6 +16,7 @@ pipeline {
steps { steps {
sh ''' sh '''
npm config set cache /.npm npm config set cache /.npm
chown -R $(id -u):$(id -g) /.npm 2>/dev/null || true
npm install npm install
''' '''
} }
@@ -30,6 +31,7 @@ pipeline {
} }
steps { steps {
sh ''' sh '''
chown -R $(id -u):$(id -g) /.npm 2>/dev/null || true
npm run type-check npm run type-check
npm run build npm run build
''' '''