I was following this guide to install clangd.
After installing snap smoothly, I tried to install clangd, but the following error occurred.
$ sudo snap install clangd --classic
error: cannot add authorization: open /[home directory]/.snap/auth.json: permission denied
OS is RHEL 7.
If anyone knows about that issue please fix it.