As an asynchronous event-driven JavaScript runtime, Node.js is designed to build scalable network applications.
Nodejs team build Debian custom repositrory and instalation of nodejs is very simple :
sudo curl -fsSL https://deb.nodesource.com/setup_17.x | bash -
sudo apt-get install -y nodejs