diff --git a/scripts/install b/scripts/install index 5a16ea6..fdf7f62 100644 --- a/scripts/install +++ b/scripts/install @@ -187,13 +187,10 @@ mkdir -p "$final_path/distbin-db" chown -R "$app":"$app" "$final_path" pushd $final_path ynh_use_nodejs + sudo -u $app env PATH=$PATH npm install --ignore-scripts --production sudo -u $app env PATH=$PATH npm run build popd -pushd $final_path/dist - sudo -u $app env PATH=$PATH npm install --ignore-scripts -popd - #================================================= # SETUP SYSTEMD #=================================================