The command could not be located because '/snap/bin' is not included in the PATH environment variable. code example
Example: The command could not be located because '/snap/bin' is not included in the PATH environment variable.
Temporary solution:
Run the command
$ export PATH=$PATH:/snap/bin
Permanent solution:
Edit /etc/environment and add /snap/bin in the list then restart your system