Error when adding. Pkg.add("ImageInTerminal")

#1

I’m trying to add

ImageInTerminal

I get an error, could someone help me solve it?

julia> Pkg.add("ImageInTerminal")
 Resolving package versions...
   Cloning [d8c32880-2388-543b-8c61-d9f865259254] ImageInTerminal from https://github.com/JuliaImages/ImageInTerminal.jl.git
ERROR: failed to clone from https://github.com/JuliaImages/ImageInTerminal.jl.git, error: GitError(Code:ERROR, Class:OS, failed to send request: No se pudo resolver el nombre de servidor o su dirección
)
Stacktrace:
 [1] pkgerror(::String) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.1\Pkg\src\Types.jl:120
 [2] #clone#3(::String, ::Base.Iterators.Pairs{Symbol,Any,Tuple{Symbol,Symbol},NamedTuple{(:isbare, :credentials),Tuple{Bool,LibGit2.CachedCredentials}}}, ::Function, ::String, ::String) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.1\Pkg\src\GitTools.jl:111
 [3] (::getfield(Pkg.Operations, Symbol("##18#20")){Base.UUID,String,Base.SHA1,Array{String,1}})(::LibGit2.CachedCredentials) at .\none:0
 [4] shred!(::getfield(Pkg.Operations, Symbol("##18#20")){Base.UUID,String,Base.SHA1,Array{String,1}}, ::LibGit2.CachedCredentials) at .\secretbuffer.jl:184
 [5] install_git(::Pkg.Types.Context, ::Base.UUID, ::String, ::Base.SHA1, ::Array{String,1}, ::VersionNumber, ::String) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.1\Pkg\src\Operations.jl:506
 [6] #apply_versions#23(::Symbol, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}, ::Dict{Base.UUID,Base.SHA1}, ::Dict{Base.UUID,Array{String,1}}) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.1\Pkg\src\Operations.jl:631
 [7] #apply_versions#22 at .\none:0 [inlined]
 [8] #apply_versions at .\none:0 [inlined]
 [9] #add_or_develop#63(::Array{Base.UUID,1}, ::Symbol, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.1\Pkg\src\Operations.jl:1172
 [10] #add_or_develop at .\none:0 [inlined]
 [11] #add_or_develop#15(::Symbol, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.1\Pkg\src\API.jl:54
 [12] #add_or_develop at .\none:0 [inlined]
 [13] #add_or_develop#14 at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.1\Pkg\src\API.jl:31 [inlined]
 [14] #add_or_develop at .\none:0 [inlined]
 [15] #add_or_develop#13 at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.1\Pkg\src\API.jl:29 [inlined]
 [16] #add_or_develop at .\none:0 [inlined]
 [17] #add_or_develop#12(::Base.Iterators.Pairs{Symbol,Symbol,Tuple{Symbol},NamedTuple{(:mode,),Tuple{Symbol}}}, ::Function, ::String) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.1\Pkg\src\API.jl:28
 [18] add(::String) at .\none:0
 [19] top-level scope at none:0
#2

The OS error message translates to English as: “The server name or address could not be resolved”

It seems like you’re behind a firewall or VPN, which is blocking your DNS requests to locate the IP for Github.com. You may need to configure a proxy to make this work.