I can not uninstall duplicate Node in virtual machine

0

I'm programming in CodeAnywhere and I have a Linux virtual machine, where I installed the latest version of Node and NPM, but when I start the server, this version error appears, and it really has an old node in it folder. How do I install the current node in the same folder or remove this old version?

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

Can anyone help? Thankful.

    
asked by anonymous 16.07.2017 / 15:55

1 answer

0

If you installed the node website try:

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