Packages won't install in Julia on company laptop

I am on a Windows 10 laptop and have just installed Julia 1.8.4. When I try to install a package (through Pkg.add() and through “pkg>”, I get the following error:

Warning: could not download port 443 after 17922 ms: Connection refused while requesting
@Pkg.Registry C:\workdir\usr\share\julia\stdlib\v1.8\Pkg\src\Registry\Registry.jl
Cloning registry from
Error: failed to clone from, error: GitError(Code:ERROR, Class:OS, failed to send request: A connection with the server could not be established)

This error also arises when I attempt to use Pkg.status(). My hunch is that this is related to the VPN my company is using, but I’m not able to see any information past the error values. I’ll add that I’m able to go to the github registry in my browser, so the website isn’t blocked.
I’ve done some searching and can’t seem to find a solution - has anyone encountered something similar?

Best guess is a a firewall that is blocking access.

1 Like

Could you try:

import Pkg

I think this switches the protocol for downloading the registry to git which is often not blocked by companies.