diff --git a/Jenkinsfile b/Jenkinsfile index b137016c..eb2db15f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,18 +22,6 @@ pipeline { ''' } } - // 修复 npm 权限 + 设置国内镜像 - stage('修复npm权限') { - steps { - sh ''' - # 配置 npm 缓存目录到当前工作区(解决权限问题) - npm config set cache $WORKSPACE/.npm - npm config set prefix $WORKSPACE/.npm-global - npm config set registry https://registry.npmmirror.com - ''' - } - } - stage('安装依赖') { steps { sh 'npm install'