Can't install npm in Parrot OS Home 5.x

Hey, i installed the parrot os home with 5.x kernel and after that i can’t install npm.

Here some information:
uname -a: Linux darling-papagaio 5.14.0-9parrot1-amd64 #1 SMP Debian 5.14.9-9parrot1 (2021-10-26) x86_64 GNU/Linux

Commands:

sudo apt update
sudo apt upgrade
sudo apt install npm

Problem:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 npm : Depends: nodejs:any (>= 10) but it is not installable
       Recommends: node-tap but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Kindly try these on your terminal:

sudo apt install nodejs
curl -L https://npmjs.org/install.sh | sudo sh

1 Like

Oh i resolve it, need to install from source but thanks!

1 Like

Yo lo había resuelto de otra forma antes, pero no me acordaba(supongo porque no lo aprendí realmente), tu solución me parece la más sencilla. Gracias.

Bienvenidas, @dns