Commit 79f89e2a authored by 温海元's avatar 温海元

add npm install -safe

parent 5ae792bb
...@@ -392,7 +392,8 @@ def checkout_nodejs(systemName, branchName) { ...@@ -392,7 +392,8 @@ def checkout_nodejs(systemName, branchName) {
} else { } else {
echo ">>>>>>> is node ui project" echo ">>>>>>> is node ui project"
def bowerFile = fileExists './bower.json' def bowerFile = fileExists './bower.json'
sh "npm install" //sh "npm install"
sh "npm install --unsafe-perm=true --allow-root"
if (bowerFile) { if (bowerFile) {
//sh "bower install --allow-root" //sh "bower install --allow-root"
sh "npm install --unsafe-perm=true --allow-root" 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