I’m trying out the new package manager, but get stuck following the docs here: https://docs.julialang.org/en/latest/stdlib/Pkg.html#Adding-packages-to-the-project-1
julia> import HelloWorld
julia> HelloWorld.greet()
Hello World!
julia>
(HelloWorld) pkg> add Random
Resolving package versions...
Updating `../Project.toml`
[9a3f8284] + Random
Updating `../Manifest.toml`
[9a3f8284] + Random
(HelloWorld) pkg> add JSON
ERROR: The following package names could not be resolved:
* JSON (not found in project, manifest or registry)
Please specify by known `name=uuid`.
Similarly on the next step:
(HelloWorld) pkg> add https://github.com/fredrikekre/ImportMacros.jl
Updating git-repo `https://github.com/fredrikekre/ImportMacros.jl`
┌ Warning: packages will require to have a [Julia]Project.toml file in the future
└ @ Pkg.Types Types.jl:814
[ Info: Assigning UUID 145ac618-5f2d-11e8-1b45-c5aa9d0e379a to ImportMacros
Resolving package versions...
ERROR: The following package names could not be resolved:
* MacroTools (not found in project, manifest or registry)
Please specify by known `name=uuid`.
Also the same thing happens when trying to install a package “normally”, i.e. not inside a “project”.