I try to install, but it does'nt work

I try to install “snaps”, but I can’t. This error appears: error: cannot communicate with server: Post http://localhost/v2/snaps/heroku: dial unix /run/snapd.socket: connect: no such file or directory.

Can someone help me?

What distribution this is? Some installations (eg. CentOS) require you to manually enable snapd.socket by executing systemctl enable --now snapd.socket command.

Please see https://snapcraft.io/docs/installing-snapd for instructions for some popular distros.