How to remove the Node in Arch linux / Linux Manjaro

0

Recently I started a project but my node has a small error and I need to remove it. The following question is how to completely remove node.js using the Arch Linux terminal?

And when I run the command pacman -R node as super user I get this error:

erro: não foi possível abrir o arquivo /var/lib/pacman/local/firefox-58.0.2-1.1/desc: Arquivo ou diretório não encontrado erro:alvo não encontrado: node
    
asked by anonymous 10.05.2018 / 19:11

1 answer

1

Try reinstalling using your package manager. In my case, I use 'yay':

yay -S nodejs

The package manager will ask if you want to overwrite. Another solution would be to install a minor version (LTS) and put the last one again.

yay -S nodejs-lts-carbon

When prompted to remove, press S.

Once this is done, reinstall Node v10 +.

yay -S nodejs

I hope it helps!

    
04.10.2018 / 04:31