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 | 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- | bash

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

    # 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

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.