From 189c62f511ae086b63799835f29d6cab5d35f2fe Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 30 Jan 2019 17:50:11 +0100 Subject: [PATCH] Fix sudo npm --- scripts/install | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/install b/scripts/install index 57200e9..23380ab 100644 --- a/scripts/install +++ b/scripts/install @@ -174,13 +174,13 @@ ynh_system_user_create $app pushd $final_path ynh_use_nodejs -npm install "graphql@^0.13.1" -npm install "acorn@^6.0.0" -npm install "babel-core@>=6.0.20" -npm install "eslint@>=5.0.0" -npm install -npm audit fix -npm run build +sudo -u $app $nodejs_path/npm install "graphql@^0.13.1" +sudo -u $app $nodejs_path/npm install "acorn@^6.0.0" +sudo -u $app $nodejs_path/npm install "babel-core@>=6.0.20" +sudo -u $app $nodejs_path/npm install "eslint@>=5.0.0" +sudo -u $app $nodejs_path/npm install +sudo -u $app $nodejs_path/npm audit fix +sudo -u $app $nodejs_path/npm run build popd