# Pkg add several packages -- syntax and error message

**URL:** <https://discourse.julialang.org/t/pkg-add-several-packages-syntax-and-error-message/13603>\
**Category:** General Usage\
**Tags:** package-manager\
**Created:** [August 17, 2018, 6:02am UTC](https://discourse.julialang.org/t/pkg-add-several-packages-syntax-and-error-message/13603 "2018-08-17T06:02:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![baggepinnen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/baggepinnen/32/693_2.png) [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Post date:** [August 17, 2018, 6:02am UTC](https://discourse.julialang.org/t/pkg-add-several-packages-syntax-and-error-message/13603/1 "2018-08-17T06:02:40Z")

</div>

This is merely a suggestion for a better error message. It took me quite a while to figure out that I used the wrong syntax while trying to add several packages like below. I thought I had messed up the package installation for ForwardDiff and tried to resolve that, but it turned out that I had just added unacceptable commas

Wrong syntax:

```julia
(v0.7) pkg> add ForwardDiff, ReverseDiff, ValueHistories, JLD, Parameters
   Cloning git-repo `ForwardDiff,`
ERROR: failed to clone from ForwardDiff,, error: GitError(Code:ERROR, Class:Net, unsupported URL protocol)

```

Correct syntax:

```julia
(v0.7) pkg> add ForwardDiff ReverseDiff ValueHistories JLD Parameters

```

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [August 17, 2018, 6:07am UTC](https://discourse.julialang.org/t/pkg-add-several-packages-syntax-and-error-message/13603/2 "2018-08-17T06:07:47Z")

</div>

[https://github.com/JuliaLang/Pkg.jl/issues/589](https://github.com/JuliaLang/Pkg.jl/issues/589)
