How to remove Node in Arch linux / Linux Manjaro

Asked

Viewed 476 times

0

I recently started a project but my Ode 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 executing 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
  • Wouldn’t it be something like pacman -R node?

  • No, I tried for this and it didn’t work. I remember when I installed Node I ran so sudo npm install nodejs

  • 1

    Did you use a Node-dependent package manager to install Node? Weird.

1 answer

3


Try to reinstall 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 smaller version (LTS) and put the last one again.

yay -S nodejs-lts-carbon

When asking if you want to remove, press S.

Once done, re-install Node V10+.

yay -S nodejs

I hope it helps!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.