Browse Source

Add node uninstall script

master
Noah Williams 2 years ago
parent
commit
69acd01083
  1. 33
      node-uninstall.sh

33
node-uninstall.sh

@ -0,0 +1,33 @@
#!/bin/bash
rm -rf /usr/local/bin/node*;
rm -rf /usr/local/lib/node*;
rm -rf /usr/local/lib/dtrace/node.d;
rm -rf /usr/local/include/node*;
rm -rf /usr/local/share/man/man1/node*;
rm -rf /usr/local/share/man/man1/npm*;
rm -rf /usr/local/share/man/man1/npx*;
rm -rf /usr/local/share/man/man5/npm*;
rm -rf /usr/local/share/man/man5/node*;
rm -rf /usr/local/share/doc/node*;
rm -rf /usr/local/share/systemtap/tapset/node.stp;
rm -rf ~/.node_repl_history;
rm -rf ~/.node-gyp;
rm -rf ~/.npm;
rm -rf ~/.npmrc;
echo 'Node has been uninstalled';
Loading…
Cancel
Save