diff --git a/Jenkinsfile b/Jenkinsfile index 94aecf53..7c9103d2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -25,8 +25,11 @@ pipeline { } stage('安装依赖') { steps { - sh 'npm install @dcloudio/uts-linux-x64-gnu' - sh 'npm install' + echo "清理旧依赖" + sh "rm -rf node_modules package-lock.json" + + echo "✅ 安装 UniApp 依赖(忽略平台+开权限+强制)" + sh "npm install --force --unsafe-perm --ignore-platform" } } stage('打包uniapp') {