On many Raspberry Pi models, Node.js can be installed with a simple apt-get command. Unfortunately, installation scripts are not available for devices that are running the ARMv6 instruction set architecture like the Raspberry Pi Zero, Raspberry Pi Zero W, and all models of the Raspberry Pi 1. However, you are not out of luck if you own one of these models! Node.js provides binaries for the ARMv6 instruction set architecture – they simply need to be installed manually.
I found this article to be useful when installing Node.js on my ARMv6-based Raspberry Pi Zero W: https://www.thepolyglotdeveloper.com/2018/03/install-nodejs-raspberry-pi-zero-w-nodesource/