Can't install or refresh snaps on Arch Linux

I solved it like this:

sudo pacman -S snapd

sudo systemctl enable --now snapd.socket

sudo ln -s /var/lib/snapd/snap /snap

sudo systemctl start --now snapd.socket

After that I no longer throw an error, which in fact was the same one that shot you.