What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.1.39
How are you able to access your server: Direct access via physical keyboard/screen
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: no
Describe your issue
How to get rid of it, if possible?
I have the following apps installed on my YunoHost 12.1.39 (stable) server:
Forgejo
5 x My Webapp (only one of which uses php and MySQL, the rest have no special capabilities other than displaying static web pages)
SearxNG
Webmin
phpMyAdmin
Until recently, the Mitra app (including Mitra-Web) was also installed, but I uninstalled it today (including the data directory).
When checking the storage space with ncdu, the directory n is displayed under /usr/local, which accounts for 9.1 GB. This is a comprehensive collection of node.js installations in various versions (a total of 54 different versions are installed there):
I have now checked the installation scripts for Forgejo, SearxNG, Webmin and phpMyAdmin to see whether node/npm/npx is installed as a dependency. This does not appear to be the case. Mitra itself does not install it either, but Mitra-Web does. npm appears in the installation script. However, it does not appear to be installed with Debian’s package manager, but rather directly to /usr/local in some other way.
Question: Are there any dependencies on node.js in the base system of YunoHost? Can I safely delete the contents of the /usr/local/n directory to get rid of the unnecessary 9.1 GB? Presumably, the different versions were installed with the Mitra/Mitra-Web upgrade, but not uninstalled with the remove script (removal is also not apparent in the script).
Share relevant logs or error messages
ls versions/node/
16.20.1/ 20.11.0/ 20.12.2/ 20.15.0/ 20.18.0/ 20.19.0/ 20.19.4/ 20.6.1/ 20.9.0/ 21.6.0/ 21.7.1/ 22.15.1/ 22.18.0/ 22.21.1/
16.20.2/ 20.11.1/ 20.13.0/ 20.15.1/ 20.18.1/ 20.19.1/ 20.19.5/ 20.7.0/ 21.3.0/ 21.6.1/ 21.7.2/ 22.16.0/ 22.19.0/ 22.22.0/
18.20.2/ 20.12.0/ 20.13.1/ 20.16.0/ 20.18.2/ 20.19.2/ 20.5.1/ 20.8.0/ 21.4.0/ 21.6.2/ 21.7.3/ 22.17.0/ 22.20.0/
20.10.0/ 20.12.1/ 20.14.0/ 20.17.0/ 20.18.3/ 20.19.3/ 20.6.0/ 20.8.1/ 21.5.0/ 21.7.0/ 22.15.0/ 22.17.1/ 22.21.0/