I haven’t tried v12, but you may try:
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
Some time ago, I had successfully installed a v8.11 this way.
I haven’t tried v12, but you may try:
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
Some time ago, I had successfully installed a v8.11 this way.