diff --git a/data/helpers.d/nodejs b/data/helpers.d/nodejs index 3aab8f821..e3a7588f7 100644 --- a/data/helpers.d/nodejs +++ b/data/helpers.d/nodejs @@ -262,7 +262,7 @@ ynh_remove_nodejs () { ynh_cleanup_nodejs () { # List required Node.js versions - local installed_apps=$(yunohost app list | grep -oP 'id: \K.*$') + local installed_apps=$(yunohost app list --output-as json --quiet | jq -r .apps[].id) local required_nodejs_versions="" for installed_app in $installed_apps do