nodejs 14.x installation

Hi, How can I install Nodejs 14.x latest version in parrot security 4.10…?
even if you update the system or run

apt install nodejs

it installs or reinstalls nodejs version 10.x
so I googled for alternative solution and got this

curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -
sudo apt -y install nodejs

from this link


and many other links as well…

but neither of this works…
any help…!!!

well you can do that easily using nvm (Node Version Manager)
here is the github link

for installation just do

  1. curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash

  2. export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

    # This loads nvm

  3. After that to you can easily manage different versions of node js. To install 14.11.0 version of node js(updated one in the time of comment), just do nvm install 14.11.0 that will install the specified version of nodejs

Note: Just type nvm in the terminal, you will know more details