Find the latest LTS release. Currently the LTS version is 10.x
and the latest release can be found here
(choose the file ending with -linux-armv6l.tar.xz
).
Download that file: wget https://nodejs.org/dist/latest-v10.x/node-v10.16.0-linux-armv6l.tar.xz
Unpack the file: tar -xvf node-v10.16.0-linux-armv6l.tar.xz
Copy the content over to /usr/local
: sudo cp -r node-v10.16.0-linux-armv6l/* /usr/local/
Test it: node -v