On my machine (Windows 11, Julia 1.11.5), installing MS_Import also fails precompilation, but with output
[ Info: Precompiling MS_Import [93a63400-8ba1-11ea-364f-abd7f7f5e3cc]
WARNING: Method definition array2mat_(Any) in module MS_Import at (...)\.julia\packages\MS_Import\vH28N\src\CommunFun.jl:9 overwritten on the same line (check for duplicate calls to `include`).
ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
┌ Info: Skipping precompilation due to precompilable error. Importing MS_Import [93a63400-8ba1-11ea-364f-abd7f7f5e3cc].
└ exception = Error when precompiling module, potentially caused by a __precompile__(false) declaration in the module.
presumably related to ERROR: Method overwriting is not permitted during Module precompilation. As indicated, it then just skips precompilation, and using MS_Import seems to work.
For SAFD I get a weird
julia> Pkg.add(PackageSpec(url="https://bitbucket.org/SSamanipour/safd.jl/src/master/"))
ERROR: GitError(Code:ENOTFOUND, Class:Repository, could not find repository at '(...)\.julia\clones\837030787967441027')
even though this directory is created by the add. This might be related to the LibGit2 errors in the original post. I’m inclined to blame this on the fact that this repository is almost 4 GB. Pulling it via git clone and then locally installing via Pkg.add(path="...") gave no problems.