When nothing requires a certain Electron version, Arch drops it from the repos to the AUR. If you still need an older version, install the binary package from the AUR so you don’t have to spend hours building it from source; i.e., electron22-bin
.
Electron versions <=27 are EOL (End Of Life) and insecure.
No such thing. Did you mean pamac?