I execute the following commands to install heroku:
sudo apt install snapd
sudo snap install --classic heroku
This error occurs:
snap "heroku" is already installed, see 'snap help refresh'
I'm trying to fix it this way:
//.bash-profile
[[ -s "/snap/bin/heroku" ]] && source "/snap/bin"
//.bashrc
export PATH="$PATH:/snap/bin"
//.zshrc
export PATH="$PATH:/snap/bin"
But the error remained.
Help fix please.