Are you in China perhaps? There were posts here before where the Chinese firewall blocked access to the pkgregistry. You’ll have to use a proxy or VPN I think.
Maybe have look here for more info: Why is it so hard to install packages in julia from China? - #11 by ToucheSir