in reply to Matt Campbell

@matt @Anachron You are right.

It even tried installing x11 packages on a Raspbian server.

Now I wonder what other garbage I got installed with other packages.

Anyway, as a seasoned JS developer I recommend downloading archives from nodejs.org/en/download directly, extracting them in a local directory and symlinking the 3 binaries (node, npm, npx) into your PATH.