Change order of removal for npm-based installations

This commit is contained in:
Sander Declerck 2026-01-06 11:23:47 +01:00
parent 4aca6ef86a
commit 4e098bcff7
No known key found for this signature in database
2 changed files with 5 additions and 6 deletions

View file

@ -151,10 +151,10 @@ main() {
warn "safe-chain command not found. Proceeding with uninstallation."
fi
# Remove npm-based installations (nvm must be checked first)
remove_nvm_installation
remove_volta_installation
# Check for existing safe-chain installation through nvm, volta, or npm
remove_npm_installation
remove_volta_installation
remove_nvm_installation
# Remove install dir recursively if it exists
if [ -d "$INSTALL_DIR" ]; then