Gen install

“pkg> add

“ERROR: syntax: extra token “https” after end of expression.”

Can you help me?



pkg> add

If the package is not registered and you add by cloning you need to use quotes:

pkg> add ""

No, only if the url has weird characters, like spaces or similar. This works for me:

(v1) pkg> add
  Updating git-repo ``
 Resolving package versions...
  Updating `~/.julia/environments/v1/Project.toml`
  [ea4f424c] + Gen v0.3.1 #master (

That error is a Julia syntax error (not an error from the package manager) so it looks like you did something like this:

julia> add
ERROR: syntax: extra token "https" after end of expression

instead of first entering the Pkg REPL mode (you enter it with ]). Note that the prompt changes from julia> to pkg> when you do this.


You have written pkg> in front of your command. Instead, press the ] character, which will take you to the Pkg-mode

Edit: It should look something like that



@fredrikekre was right, you don’t need to quote unless there are special characters.
First press ]. Then add


using Pkg
Pkg.add(PackageSpec(url = ""))

Again, you are not pressing ]

1 Like

thank you very much.