diff --git a/apps/Node.js/uninstall b/apps/Node.js/uninstall index e3b5982..179fa81 100755 --- a/apps/Node.js/uninstall +++ b/apps/Node.js/uninstall @@ -8,11 +8,7 @@ function error { } #Uninstall NodeJS -sudo apt purge nodejs -y || error "Failed to purge Node.JS!" -sudo apt autoremove -y #who cares if this fails? +nvm uninstall default || error "Failed to purge Node.JS!" -#remove /etc/apt/sources.list.d/nodesource.list -sudo rm /etc/apt/sources.list.d/nodesource.list || error "Failed to remove nodesource repo!" - -#if your app installs any packages, keep this command here so those packages will be removed. -"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1 \ No newline at end of file +#Remove nvm +sudo rm -rf ~/.nvm