Ubuntu中,如何删除编译安装的node?

Ubuntu中,如何删除编译安装的node?

1 not good for all

1
sudo apt-get remove nodejs

2 the best

1
2
3
cd _the_path_you_install_node
sudo make uninstall
# ref: https://hungred.com/how-to/completely-removing-nodejs-npm/

3 not suggest

delete the path you installed node directly

1
2
which node
rm _the_path