This is a simple to install Node.js inside Kali Linux OS. Simply download the bash script and run the script.
# Download:
git clone https://github.com/CybernetiX-S3C/NodeJS-Kali-Linux
# How to install:
cd NodeJS-Kali-Linux
bash NodeJS-Kali-Linux.sh
# Check Version:
npm -v