# Unable to enter Pkg REPL

**URL:** https://discourse.julialang.org/t/unable-to-enter-pkg-repl/44786
**Category:** General Usage
**Created:** [August 12, 2020, 7:52am UTC](https://discourse.julialang.org/t/unable-to-enter-pkg-repl/44786 "2020-08-12T07:52:01Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![cliang](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cliang/32/17097_2.png) [@cliang](https://discourse.julialang.org/u/cliang)
#### Post date: [August 12, 2020, 7:52am UTC](https://discourse.julialang.org/t/unable-to-enter-pkg-repl/44786/1 "2020-08-12T07:52:01Z")

</div>

```julia
julia> ]
ERROR: syntax: unexpected "]"
Stacktrace:
 [1] top-level scope at none:1

```

According to the document

> Pkg comes with a REPL. Enter the Pkg REPL by pressing `]` from the Julia REPL. To get back to the Julia REPL, press backspace or ^C.

Did I get this sentence wrong?

If so, I would like to tell me how to enter the operation demonstration of PKG repl, thanks.

---

<div class="post-metadata">

### Author: ![MatFi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/matfi/32/10002_2.png) [@MatFi](https://discourse.julialang.org/u/MatFi)
#### Post date: [August 12, 2020, 8:25am UTC](https://discourse.julialang.org/t/unable-to-enter-pkg-repl/44786/2 "2020-08-12T08:25:03Z")

</div>

Actually the behavior should be like this:

```julia
julia> 
#after hit ']' the promt should change to 
(@v1.5) pkg>

```

- what version of julia are you using?
- what happens when typing `using REPL`

---

<div class="post-metadata">

### Author: ![cliang](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cliang/32/17097_2.png) [@cliang](https://discourse.julialang.org/u/cliang)
#### Post date: [August 12, 2020, 9:29am UTC](https://discourse.julialang.org/t/unable-to-enter-pkg-repl/44786/3 "2020-08-12T09:29:14Z")

</div>

Oh,I see, I had to type `]` directly without line break.  
Because I study on a tablet, I used to click on the `[]` on the soft keyboard, and then delete the previous `[`

---

<div class="post-metadata">

### Author: ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)
#### Post date: [August 12, 2020, 10:15am UTC](https://discourse.julialang.org/t/unable-to-enter-pkg-repl/44786/4 "2020-08-12T10:15:14Z")

</div>

Hmmm… maybe look to see if you can define a hotkey to be ]

Also please look at using Pkg directly in this fashion at the Julia prompt.  
This might be easier for you?

using Pkg  
Pkg.status()  
Pkg.add(“MyNewPackage”)

---

<div class="post-metadata">

### Author: ![anon37204545](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@anon37204545](https://discourse.julialang.org/u/anon37204545)
#### Post date: [August 12, 2020, 10:32am UTC](https://discourse.julialang.org/t/unable-to-enter-pkg-repl/44786/5 "2020-08-12T10:32:04Z")

</div>

It doesn’t work if it’s copy-pasted, e.g. with `]add PackageName`. You need to press `]` first, then type (or paste) the rest.
