# Error message in adding a package

**URL:** <https://discourse.julialang.org/t/error-message-in-adding-a-package/78992>\
**Category:** New to Julia\
**Created:** [April 4, 2022, 8:17am UTC](https://discourse.julialang.org/t/error-message-in-adding-a-package/78992 "2022-04-04T08:17:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![habeebadeyemi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/habeebadeyemi/32/35162_2.png) [@habeebadeyemi](https://discourse.julialang.org/u/habeebadeyemi)\
**Post date:** [April 4, 2022, 8:17am UTC](https://discourse.julialang.org/t/error-message-in-adding-a-package/78992/1 "2022-04-04T08:17:53Z")

</div>

trying to add pluto package and below is error message i get.

Error: The following package names could not be resolved:

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [April 4, 2022, 8:33am UTC](https://discourse.julialang.org/t/error-message-in-adding-a-package/78992/2 "2022-04-04T08:33:14Z")

</div>

Can you share what you typed?  
And the full error message?

The command:

```julia
]add Pluto

```

in the repl works find for me:

```julia
(repos) pkg> add Pluto
    Updating registry at `~/.julia/registries/General.toml`
   Resolving package versions...
   Installed RelocatableFolders ─ v0.2.0
   Installed IniFile ──────────── v0.5.1
   Installed MsgPack ──────────── v1.1.0
   Installed ExproniconLite ───── v0.6.13
   Installed FuzzyCompletions ─── v0.5.0
   Installed Configurations ───── v0.17.3
   Installed Pluto ────────────── v0.18.4
    Updating `~/repos/Project.toml`
  [c3e4b0f8] + Pluto v0.18.4
    Updating `~/repos/Manifest.toml`
  [5218b696] + Configurations v0.17.3
  [9a962f9c] + DataAPI v1.9.0
  [e2d170a0] + DataValueInterfaces v1.0.0
  [55351af7] + ExproniconLite v0.6.13
  [fb4132e2] + FuzzyCompletions v0.5.0
  [cd3eb016] + HTTP v0.9.17
  [83e8ac13] + IniFile v0.5.1
  [82899510] + IteratorInterfaceExtensions v1.0.0
  [739be429] + MbedTLS v1.0.3
  [99f44e22] + MsgPack v1.1.0
  [bac558e1] + OrderedCollections v1.4.1
  [c3e4b0f8] + Pluto v0.18.4
  [05181044] + RelocatableFolders v0.2.0
  [6c6a2e73] + Scratch v1.1.0
  [3783bdb8] + TableTraits v1.0.1
  [bd369af6] + Tables v1.7.0
  [5c2747f8] + URIs v1.3.0
  [0dad84c5] + ArgTools
  [56f22d72] + Artifacts
  [2a0f44e3] + Base64
  [ade2ca70] + Dates
  [8ba89e20] + Distributed
  [f43a241f] + Downloads
  [7b1f6079] + FileWatching
  [b77e0a4c] + InteractiveUtils
  [b27032c2] + LibCURL
  [76f85450] + LibGit2
  [8f399da3] + Libdl
  [37e2e46d] + LinearAlgebra
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [ca575930] + NetworkOptions
  [44cfe95a] + Pkg
  [de0858da] + Printf
  [3fa0cd96] + REPL
  [9a3f8284] + Random
  [ea8e919c] + SHA
  [9e88b42a] + Serialization
  [6462fe0b] + Sockets
  [fa267f1f] + TOML
  [a4e569a6] + Tar
  [8dfed614] + Test
  [cf7118a7] + UUIDs
  [4ec0a83e] + Unicode
  [e66e0078] + CompilerSupportLibraries_jll
  [deac9b47] + LibCURL_jll
  [29816b5a] + LibSSH2_jll
  [c8ffd9c3] + MbedTLS_jll
  [14a3606d] + MozillaCACerts_jll
  [4536629a] + OpenBLAS_jll
  [83775a58] + Zlib_jll
  [8e850b90] + libblastrampoline_jll
  [8e850ede] + nghttp2_jll
  [3f19e933] + p7zip_jll
Precompiling project...
  11 dependencies successfully precompiled in 11 seconds (12 already precompiled)

(repos) pkg> 

```

---

<div class="post-metadata">

**Author:** ![habeebadeyemi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/habeebadeyemi/32/35162_2.png) [@habeebadeyemi](https://discourse.julialang.org/u/habeebadeyemi)\
**Post date:** [April 4, 2022, 8:42am UTC](https://discourse.julialang.org/t/error-message-in-adding-a-package/78992/3 "2022-04-04T08:42:19Z")

</div>

What I typed was

]add Pluto

Or is Julia case sensitivity??

---

<div class="post-metadata">

**Author:** ![gdalle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdalle/32/27854_2.png) [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Post date:** [April 4, 2022, 9:23am UTC](https://discourse.julialang.org/t/error-message-in-adding-a-package/78992/4 "2022-04-04T09:23:27Z")

</div>

Julia **is** case-sensitive but your command looks fine. Maybe you could share a screenshot of your console?

---

<div class="post-metadata">

**Author:** ![FrancisKing](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/francisking/32/24966_2.png) [@FrancisKing](https://discourse.julialang.org/u/FrancisKing)\
**Post date:** [April 4, 2022, 12:40pm UTC](https://discourse.julialang.org/t/error-message-in-adding-a-package/78992/5 "2022-04-04T12:40:01Z")

</div>

I’ve also tried it Julia 1.7.2.

> ]

> add Pluto

It then does a lot of positive things, but then errors right at the end:

```julia
ERROR: Error when installing package Pluto:
IOError: rm("C:\\Users\\fking\\AppData\\Local\\Temp\\fU2Iy2zbtVHB\\frontend\\components"): directory not empty (ENOTEMPTY)
Stacktrace:
 [1] uv_error
   @ .\libuv.jl:97 [inlined]
 [2] rm(path::String; force::Bool, recursive::Bool)
   @ Base.Filesystem .\file.jl:299
 [3] rm(path::String; force::Bool, recursive::Bool) (repeats 2 times)
   @ Base.Filesystem .\file.jl:287
 [4] rename(src::String, dst::String; force::Bool)
   @ Base.Filesystem .\file.jl:968
 [5] rename
   @ .\file.jl:964 [inlined]
 [6] #mv#17
   @ .\file.jl:412 [inlined]
 [7] install_archive(urls::Vector{Pair{String, Bool}}, hash::Base.SHA1, version_path::String; io::Base.TTY)
   @ Pkg.Operations C:\Users\fking\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\Pkg\src\Operations.jl:522
 [8] macro expansion
   @ C:\Users\fking\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\Pkg\src\Operations.jl:698 [inlined]
 [9] (::Pkg.Operations.var"#45#50"{Bool, Pkg.Types.Context, Channel{Any}, Channel{NamedTuple{(:pkg, :urls, :path), Tuple{Pkg.Types.PackageEntry, Set{String}, String}}}})()
   @ Pkg.Operations .\task.jl:423

```

Pluto is therefore not installed. The folder is empty now, though.

---

<div class="post-metadata">

**Author:** ![Salmon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/salmon/32/22968_2.png) [@Salmon](https://discourse.julialang.org/u/Salmon)\
**Post date:** [April 4, 2022, 3:31pm UTC](https://discourse.julialang.org/t/error-message-in-adding-a-package/78992/6 "2022-04-04T15:31:17Z")

</div>

Looks like a bug to me. It says it’s trying to delete some folder in a temporary directory but errors because the folder isn’t empty. My guess is that something messed up your environment.  
I would guess that it’s probably fine to delete this directory on your own and try again (it says it is a temp folder after all).  
But first I would maybe try installing in a fresh environment:

```julia
] activate temp
add Pluto

```

If that works you should maybe consider cleaning up your main environment. Hope that helps
