20 years ago, java shipped with a tool called apt
: Annotation Processor Tool. This tool was obsolete not much later.
What that update-node-js-version is talking about, is a completely and totally unrelated tool: It’s the Advanced Package Tool
, which is a tool to manage installations on debian and ubuntu – linux distros. You do not want to run this on a mac, and the instructions you found are therefore completely useless: That is how to update node-js on linux. Your machine isn’t linux.
Search around for answers involving brew
, which is the go-to equivalent of apt
on mac. And completely forget about java – this has NOTHING to do with java – that was just a pure coincidence.