I cannot uninstall duplicate Node on virtual machine

Asked

Viewed 128 times

0

I am programming in Codeanywhere and I have a virtual machine with Linux, where I installed the latest version of Node and NPM, but when I start the server, this version error appears, and there really is an old number in this folder. How do I install the current Node in the same folder or remove this old version?

Note: Since Node is in the NVM folder, I tried to install it, but even with NVM using the current version of Node, the server keeps trying to use the Node that is in that photo folder where it is conflicting.

Can anyone help? Thank you.

Log de erros quando eu tento rodar o servidor

1 answer

0

If Voce installed by Node website try:

sudo rm -rf /usr/local/{bin/{node,npm},lib/node_modules/npm,lib/node,share/man/*/node.*}

Browser other questions tagged

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