Cannot install any Package

Hello,

I am new to Julia. I have not been able to install any package.
I use the following:

using Pkg
Pkg.add(“IJulia”)

And I get the below error:

ERROR: SystemError: opening file “C:\Users\UserName\.julia\registries\General\Registry.toml”: No such file or directory

I have gone through different solution like remove the registries but nothing has worked.

Could you please help?
Thanks

are you behind a firewall, what version is your julia?

I am using v1.4.2
Not sure about the firewall…

did you install Julia via the official download page (i.e not JuliaPro?); you can delete the entire .julia and retry

I installed Julia from the official page: https://julialang.org/downloads/
How can I delete the entire .julia?
And after I have done that do I need to do anything else?

how did you delete registries? same way, just delete that folder. After that, just re-launch julia and try again

Can you please tell me how to to do that? I am confused

delete the folder .julia as stated in that path you posted originally

is there a code I can use?