From f0d74fd287a58c574f7d9a020e87da295c050f9b Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 30 Jan 2019 17:18:41 +0100 Subject: [PATCH] fix sudo $app npm --- scripts/install | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 3c2e7fd..e165764 100644 --- a/scripts/install +++ b/scripts/install @@ -173,10 +173,15 @@ ynh_system_user_create $app #================================================= chown -R $app: $final_path -pushd $final_path + + ynh_use_nodejs export PATH="$PATH:$nodejs_path" -sudo -u "$app" npm install "graphql@^0.13.1" + + +( cd $final_path && sudo -u "$app" npm install "graphql@^0.13.1" ) +pushd $final_path +#sudo -u "$app" npm install "graphql@^0.13.1" sudo -u "$app" npm install "acorn@^6.0.0" sudo -u "$app" npm install "babel-core@>=6.0.20" sudo -u "$app" npm install "eslint@>=5.0.0"