Hi! I've been fighting with my VPS for the better half of a week trying to update my installation of nodejs to a higher version, I'm currently on 16.18.1. The issue I'm having is that when I try various commands to update it, it throws a permission error saying that it doesn't have access to update some of the files in the /usr/ location. So I decide to use sudo to try and do it, in which my server has a crisis and somehow the superusers don't have any idea node is installed.
I've tried reinstalling node completely to no avail, in the end had to restore a backup of the server because I'd managed to totally uproot it. I've tried any and all commands, tutorials on the internet, even turned to chatgpt also to no avail. If anyone has any idea how I can get unstuck, please let me know 😭