# Error when run Pkg.add("JuMP") in Mac

**URL:** <https://discourse.julialang.org/t/error-when-run-pkg-add-jump-in-mac/21013>\
**Category:** Tooling\
**Tags:** juliapro\
**Created:** [February 20, 2019, 2:53pm UTC](https://discourse.julialang.org/t/error-when-run-pkg-add-jump-in-mac/21013 "2019-02-20T14:53:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cheng8721](https://avatars.discourse-cdn.com/v4/letter/c/3d9bf3/32.png) [@cheng8721](https://discourse.julialang.org/u/cheng8721)\
**Post date:** [February 20, 2019, 2:53pm UTC](https://discourse.julialang.org/t/error-when-run-pkg-add-jump-in-mac/21013/1 "2019-02-20T14:53:11Z")

</div>

Hi there,

I am a new Mac User. I got an error when run Pkg.add(“JuMP”) in JuliaPro 1.0.3.1. Can any one help me out? Thanks a lot.

julia\> Pkg.add(“JuMP”)  
Updating registry at `~/.juliapro/JuliaPro_v1.0.3.1/registries/JuliaPro`  
Updating git-repo `https://pkg.juliacomputing.com//registry/JuliaPro`  
ERROR: GitError(Code:EMERGECONFLICT, Class:Checkout, 492 conflicts prevent checkout)  
Stacktrace:  
[1] macro expansion at /Users/vagrant/worker/juliapro-release-osx1011-0\_6/build/tmp\_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/LibGit2/src/error.jl:101 [inlined]  
[2] #checkout\_tree#46(::LibGit2.CheckoutOptions, ::Function, ::LibGit2.GitRepo, ::LibGit2.GitCommit) at /Users/vagrant/worker/juliapro-release-osx1011-0\_6/build/tmp\_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/LibGit2/src/repository.jl:358  
[3] ffmerge!(::LibGit2.GitRepo, ::LibGit2.GitAnnotated) at /Applications/JuliaPro-1.0.3.1.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:?  
[4] #merge!#89(::LibGit2.MergeOptions, ::LibGit2.CheckoutOptions, ::Function, ::LibGit2.GitRepo, ::Array{LibGit2.GitAnnotated,1}, ::Bool) at /Users/vagrant/worker/juliapro-release-osx1011-0\_6/build/tmp\_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/LibGit2/src/merge.jl:234  
[5] #merge! at ./none:0 [inlined]  
[6] #merge!#140(::String, ::String, ::Bool, ::LibGit2.MergeOptions, ::LibGit2.CheckoutOptions, ::Function, ::LibGit2.GitRepo) at /Users/vagrant/worker/juliapro-release-osx1011-0\_6/build/tmp\_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/LibGit2/src/LibGit2.jl:784  
[7] #merge! at ./none:0 [inlined]  
[8] update\_registries(::Pkg.Types.Context, ::Array{Pkg.Types.RegistrySpec,1}) at /Users/vagrant/worker/juliapro-release-osx1011-0\_6/build/tmp\_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/Pkg/src/Types.jl:1254  
[9] update\_registries at /Users/vagrant/worker/juliapro-release-osx1011-0\_6/build/tmp\_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/Pkg/src/Types.jl:1219 [inlined]  
[10] #handle\_repos\_add!#61(::Bool, ::Nothing, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/vagrant/worker/juliapro-release-osx1011-0\_6/build/tmp\_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/Pkg/src/Types.jl:719  
[11] #handle\_repos\_add! at /Users/vagrant/worker/juliapro-release-osx1011-0\_6/build/tmp\_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/Pkg/src/API.jl:0 [inlined]  
[12] #add\_or\_develop#15(::Symbol, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/vagrant/worker/juliapro-release-osx1011-0\_6/build/tmp\_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/Pkg/src/API.jl:42  
[13] #add\_or\_develop at ./none:0 [inlined]  
[14] #add\_or\_develop#14 at /Users/vagrant/worker/juliapro-release-osx1011-0\_6/build/tmp\_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/Pkg/src/API.jl:31 [inlined]  
[15] #add\_or\_develop at ./none:0 [inlined]  
[16] #add\_or\_develop#13 at /Users/vagrant/worker/juliapro-release-osx1011-0\_6/build/tmp\_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/Pkg/src/API.jl:29 [inlined]  
[17] #add\_or\_develop at ./none:0 [inlined]  
[18] #add\_or\_develop#12 at /Users/vagrant/worker/juliapro-release-osx1011-0\_6/build/tmp\_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/Pkg/src/API.jl:28 [inlined]  
[19] #add\_or\_develop at ./none:0 [inlined]  
[20] #add#20 at /Users/vagrant/worker/juliapro-release-osx1011-0\_6/build/tmp\_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/Pkg/src/API.jl:59 [inlined]  
[21] add(::String) at /Users/vagrant/worker/juliapro-release-osx1011-0\_6/build/tmp\_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/Pkg/src/API.jl:59  
[22] top-level scope at none:0

---

<div class="post-metadata">

**Author:** ![ianfiske](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@ianfiske](https://discourse.julialang.org/u/ianfiske)\
**Post date:** [February 20, 2019, 4:15pm UTC](https://discourse.julialang.org/t/error-when-run-pkg-add-jump-in-mac/21013/2 "2019-02-20T16:15:32Z")

</div>

The git merge conflict error there suggests that you have uncommitted changes to your local registry files. Did you manually edit your registry files? If this is the case, stash or commit those changes.

---

<div class="post-metadata">

**Author:** ![cheng8721](https://avatars.discourse-cdn.com/v4/letter/c/3d9bf3/32.png) [@cheng8721](https://discourse.julialang.org/u/cheng8721)\
**Post date:** [February 24, 2019, 4:02am UTC](https://discourse.julialang.org/t/error-when-run-pkg-add-jump-in-mac/21013/3 "2019-02-24T04:02:26Z")

</div>

Hi,  
Thanks. I didn’t edit my registry files.

---

<div class="post-metadata">

**Author:** ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Post date:** [September 12, 2023, 4:41pm UTC](https://discourse.julialang.org/t/error-when-run-pkg-add-jump-in-mac/21013/4 "2023-09-12T16:41:36Z")

</div>


