Browse Source

再次调试cnpm

xiaoct 7 years ago
parent
commit
8ad83b5a43
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Jenkinsfile

+ 3 - 1
Jenkinsfile

@@ -27,7 +27,9 @@ pipeline {
 
 
         stage('Install') {
         stage('Install') {
             steps {
             steps {
-                sh 'npm install'
+                sh 'cnpm cache clean --force'
+                sh 'cnpm cache verify'
+                sh 'cnpm install'
                 // sh 'cnpm install'   2018/9/5 有报告cnpm会在这里出错  暂时用回npm
                 // sh 'cnpm install'   2018/9/5 有报告cnpm会在这里出错  暂时用回npm
 
 
             }
             }