please install the latest version of npm
sudo apt install npm
npm install -g npm@latest
clean the cache using
hash -r
remove old node js
sudo apt-get remove nodejs
sudo apt-get update
sudo apt-get upgrade
get the installation
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
install node
sudo apt-get install -y nodejs
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
Add the PPA
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
Install and Update google chrome
sudo apt-get update
sudo apt-get install google-chrome-stable
then check your google chrome version
google-chrome --version
Install chromium
sudo apt-get install chromium-browser
> npm install