Update uninstall

pull/456/head
RPI News 5 years ago committed by GitHub
parent 92c05a494b
commit 485ce37f83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -8,11 +8,7 @@ function error {
} }
#Uninstall NodeJS #Uninstall NodeJS
sudo apt purge nodejs -y || error "Failed to purge Node.JS!" nvm uninstall default || error "Failed to purge Node.JS!"
sudo apt autoremove -y #who cares if this fails?
#remove /etc/apt/sources.list.d/nodesource.list #Remove nvm
sudo rm /etc/apt/sources.list.d/nodesource.list || error "Failed to remove nodesource repo!" sudo rm -rf ~/.nvm
#if your app installs any packages, keep this command here so those packages will be removed.
"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1

Loading…
Cancel
Save