Commit 5ae792bb authored by 温海元's avatar 温海元

add npm install -safe

parent e8e2e317
......@@ -394,7 +394,8 @@ def checkout_nodejs(systemName, branchName) {
def bowerFile = fileExists './bower.json'
sh "npm install"
if (bowerFile) {
sh "bower install --allow-root"
//sh "bower install --allow-root"
sh "npm install --unsafe-perm=true --allow-root"
}
}
......@@ -413,7 +414,8 @@ def checkout_nodejs(systemName, branchName) {
// sh "chmod +x .git/hooks/post-checkout"
git branch: branchName, credentialsId: 'c6be40a7-235a-46db-89b8-61cfcbcbc1c4', url: gitPath
sh "npm install"
//sh "npm install"
sh "npm install --unsafe-perm=true --allow-root"
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment