Hi,
I’ve just done a fresh install of Julia (tried multiple versions already, but I need v0.6) and whenever I try Pkg.add, I get the same error:
I’m on a Windows 10.
julia> Pkg.add(“IJulia”)
INFO: Initializing package repository C:\Users\EmJacobs.julia\v0.6
INFO: Cloning METADATA from GitHub - JuliaLang/METADATA.jl: Metadata for registered Julia packages up to Julia v0.6. No longer maintained. Please see https://github.com/JuliaRegistries/General instead.
ERROR: GitError(Code:ERROR, Class:OS, Failed to rename lockfile to ‘C:/Users/EmJacobs/.julia/v0.6/jl_1E99.tmp/METADATA/.git/objects/pack/pack-d1674f5e7842e87b42948fd78c43b3a79f6ba6a3.idx’: Access is denied.
)
Stacktrace:
[1] macro expansion at .\libgit2\error.jl:99 [inlined]
[2] clone(::String, ::String, ::Base.LibGit2.CloneOptions) at .\libgit2\repository.jl:276
[3] #clone#100(::String, ::Bool, ::Ptr{Void}, ::Nullable{Base.LibGit2.AbstractCredentials}, ::Function, ::String, ::String) at .\libgit2\libgit2.jl:562
[4] (::Base.LibGit2.#kw##clone)(::Array{Any,1}, ::Base.LibGit2.#clone, ::String, ::String) at .<missing>:0
[5] (::Base.Pkg.Dir.##8#10{String,String})() at .\pkg\dir.jl:55
[6] cd(::Base.Pkg.Dir.##8#10{String,String}, ::String) at .\file.jl:59
[7] init(::String, ::String) at .\pkg\dir.jl:53
[8] #cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{String,N} where N) at .\pkg\dir.jl:28
[9] add(::String) at .\pkg\pkg.jl:117