I was trying to install npm..
└─$ sudo apt-get install npm
I got some error/message https://paste.ubuntu.com/p/ZvGd7Kt96f/
That's very huge that's why I didn't add them here.. Then, I tried
sudo apt --fix-broken install
I got these messages
I am using Debian Based Linux Distro..
I tried as the website also.https://www.how2shout.com/linux/how-to-install-npm-and-nodejs-14-x-on-kali-linux/
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get update
sudo apt-get install nodejs
I got following error
Unpacking nodejs (14.16.1-deb-1nodesource1) over (12.21.0~dfsg-1) ...
dpkg: error processing archive /var/cache/apt/archives/nodejs_14.16.1-deb-1nodesource1_amd64.deb (--unpack):
trying to overwrite '/usr/share/doc/nodejs/api/cli.json.gz', which is also in package nodejs-doc 12.21.0~dfsg-1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/nodejs_14.16.1-deb-1nodesource1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)