diff --git a/base/loading.jl b/base/loading.jl index 7feb1cdd26d85e..f55f75498d90e3 100644 --- a/base/loading.jl +++ b/base/loading.jl @@ -816,7 +816,7 @@ function require(into::Module, mod::Symbol) if where.uuid === nothing throw(ArgumentError(""" Package $mod not found in current path: - - Run `Pkg.add($(repr(String(mod))))` to install the $mod package. + - Run `import Pkg; Pkg.add($(repr(String(mod))))` to install the $mod package. """)) else s = """