From 4831b7576c5492f2f862b1b27a5035fd6c793e7a Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 9 Feb 2019 00:28:20 +0100 Subject: [PATCH] Add PATH for npm build --- scripts/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 1bd631e..0f68d13 100644 --- a/scripts/install +++ b/scripts/install @@ -187,8 +187,8 @@ mkdir -p "$final_path/db" chown -R "$app":"$app" "$final_path" pushd $final_path ynh_use_nodejs - sudo -u $app env PATH=$nodejs_path npm install --ignore-scripts - sudo -u $app env PATH=$nodejs_path npm run build + sudo -u $app env PATH=$PATH npm install --ignore-scripts + sudo -u $app env PATH=$PATH npm run build popd #=================================================