How to Properly Uninstall NodeJS & NVM from CentOS

How to Properly Uninstall NodeJS & NVM from CentOS

yum remove nodejs
rm -rf ~/.nvm ~/.npm ~/.bower /usr/local/bin/npm /usr/local/bin/node* /usr/local/include/node* /usr/local/lib/node* /usr/local/share/man/man1/node* /usr/local/lib/dtrace/node.d ~/.npm ~/.node-gyp /opt/local/bin/node opt/local/include/node /opt/local/lib/node_modules bin/node bin/node-waf include/node lib/node lib/pkgconfig/nodejs.pc share/man/man1/node
yum remove nodesource-release* nodejs
yum clean all
whoami
Stefan Pejcic
Join the discussion

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.