Debian install Nodejs 14

Nodejs 14 on Debian 10 buster

Node.js 14 was released on 2020-04-21 and is expected to enter active LTS state on 2020-10-20

curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -

Do repo update then update

apt update
apt -y install nodejs

If you gonna use Nodejs on development process, the you may need these module

apt -y install gcc g++ make build build-essential

Yarn on Nodejs

curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

apt update && sudo apt install yarn