Step 1
rm -f /etc/apt/sources.list.d
Step 2
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
It created an updated /etc/apt/sources.list.d
file.
github.com/nodesource/distributions/tree/745b5834#installation-instructions
Step 3
apt-get install nodejs
github.com/nodesource/distributions/tree/745b5834#installation-instructions
Step 4
rm -f /usr/local/bin/node
Why does Node.js still shows its old version after its upgrade on Debian 10?