# Invalid enum code when using Pkg

**URL:** https://discourse.julialang.org/t/invalid-enum-code-when-using-pkg/113933
**Category:** New to Julia
**Tags:** package, installation
**Created:** [May 7, 2024, 6:57am UTC](https://discourse.julialang.org/t/invalid-enum-code-when-using-pkg/113933 "2024-05-07T06:57:13Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Devansh1106](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/devansh1106/32/207983_2.png) [@Devansh1106](https://discourse.julialang.org/u/Devansh1106)
#### Post date: [May 7, 2024, 6:57am UTC](https://discourse.julialang.org/t/invalid-enum-code-when-using-pkg/113933/1 "2024-05-07T06:57:13Z")

</div>

I am installing MPIPreferences using Pkg. But there is some argument error that has been shown in the picture below.

 ![Screenshot_20240507_122232](https://global.discourse-cdn.com/julialang/original/3X/6/e/6e210edd77f8b736e147120f2e9f48cbec112150.png)

---

<div class="post-metadata">

### Author: ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)
#### Post date: [May 7, 2024, 7:28am UTC](https://discourse.julialang.org/t/invalid-enum-code-when-using-pkg/113933/2 "2024-05-07T07:28:56Z")

</div>

FWIW, I can’t reproduce (macOS, Julia 1.10.3, clean environment).

---

<div class="post-metadata">

### Author: ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)
#### Post date: [May 7, 2024, 7:33am UTC](https://discourse.julialang.org/t/invalid-enum-code-when-using-pkg/113933/3 "2024-05-07T07:33:26Z")

</div>

Looking at your error message more closely, it seems that there is a Git fetch error when Pkg tries to update the registry. So I’d assume that this is completely unrelated to MPIPreferences.jl. To check that, do you also get an error when you try to add any other package, say `Pkg.add("Distributions")`, or directly try to update the registry `] registry up`?

---

<div class="post-metadata">

### Author: ![Devansh1106](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/devansh1106/32/207983_2.png) [@Devansh1106](https://discourse.julialang.org/u/Devansh1106)
#### Post date: [May 7, 2024, 10:26am UTC](https://discourse.julialang.org/t/invalid-enum-code-when-using-pkg/113933/4 "2024-05-07T10:26:30Z")

</div>

You are right. I am getting the same enum code error while installing other packages or updating registry using `] registry up` .  
Any idea how can I rectify this error?
