This suggest you have a corrupt or non-existing package registry. Try deleting .julia/registries/General and try again.
.julia/registries/General