# Ghost CLI Update issue

**URL:** <https://forum.ghost.org/t/ghost-cli-update-issue/1418>\
**Category:** Installation\
**Created:** [May 29, 2018, 12:28am UTC](https://forum.ghost.org/t/ghost-cli-update-issue/1418 "2018-05-29T00:28:57Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![themeix](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/themeix/32/4472_2.png) [@themeix](https://forum.ghost.org/u/themeix)\
**Post date:** [May 29, 2018, 12:28am UTC](https://forum.ghost.org/t/ghost-cli-update-issue/1418/1 "2018-05-29T00:28:57Z")

</div>

I just updated ghost-cli by using the following command,  
`npm install -g ghost-cli@latest`

And successfully it showing,

```
/usr/bin/ghost -> /usr/lib/node_modules/ghost-cli/bin/ghost
/usr/lib
└── ghost-cli@1.7.3

```

But unfortunately when i am trying to update ghost it says,

> Message: Ghost v1.23.0 is not compatible with this version of the CLI.

What’s the reason?

Picture attached.

 ![ghost-cli](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/1X/f90e5cec561485969e62d76847e2453401a1202b.png)

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [May 29, 2018, 12:41am UTC](https://forum.ghost.org/t/ghost-cli-update-issue/1418/2 "2018-05-29T00:41:11Z")

</div>

You probably have another version of ghost installed for some reason - you can find out by running `whereis ghost` - if the first location isn’t `/usr/lib...` then the version you just installed isn’t being ran

---

<div class="post-metadata">

**Author:** ![themeix](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/themeix/32/4472_2.png) [@themeix](https://forum.ghost.org/u/themeix)\
**Post date:** [May 29, 2018, 3:28am UTC](https://forum.ghost.org/t/ghost-cli-update-issue/1418/3 "2018-05-29T03:28:46Z")

</div>

But the problem is CLI version unchanged after successfully update. I think it could be a bug

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [May 29, 2018, 3:33am UTC](https://forum.ghost.org/t/ghost-cli-update-issue/1418/4 "2018-05-29T03:33:54Z")

</div>

Did you get a chance to run the `whereis` command? If you look at the versions, the installed version is `ghost-cli@1.7.3` and the debug output says the CLI version is `1.5.1` - The CLI version is [programatically retreived](https://github.com/TryGhost/Ghost-CLI/blob/master/lib/system.js#L52) retrieved based on the package file which must be updated with every release

---

<div class="post-metadata">

**Author:** ![themeix](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/themeix/32/4472_2.png) [@themeix](https://forum.ghost.org/u/themeix)\
**Post date:** [May 29, 2018, 3:49am UTC](https://forum.ghost.org/t/ghost-cli-update-issue/1418/5 "2018-05-29T03:49:32Z")

</div>

> [@vikaspotluri123](#):
>
> whereis ghost

`/usr/bin/ghost /usr/local/bin/ghost`

Here it is. What should i do now?

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [May 29, 2018, 4:45am UTC](https://forum.ghost.org/t/ghost-cli-update-issue/1418/6 "2018-05-29T04:45:38Z")

</div>

It looks like everything should be fine, but can you run

`/usr/bin/ghost -v`

and

`/usr/local/bin/ghost -v` and make sure the outputs differ"

---

<div class="post-metadata">

**Author:** ![themeix](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/themeix/32/4472_2.png) [@themeix](https://forum.ghost.org/u/themeix)\
**Post date:** [May 29, 2018, 9:38am UTC](https://forum.ghost.org/t/ghost-cli-update-issue/1418/7 "2018-05-29T09:38:49Z")

</div>

```
root@server91:/home/cino/public_html# /usr/bin/ghost -v
Ghost-CLI version: 1.7.3
Ghost Version (at /home/cino/public_html): 1.21.4
root@server91:/home/cino/public_html# /usr/local/bin/ghost -v
Ghost-CLI version: 1.5.1
Ghost Version (at /home/cino/public_html): 1.21.4
root@server91:/home/cino/public_html#

```

it returning that. Ghost CLI version in 1.5.1 in **/usr/local/bin/ghost** there. But i am expecting both should be update

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [May 29, 2018, 2:47pm UTC](https://forum.ghost.org/t/ghost-cli-update-issue/1418/8 "2018-05-29T14:47:52Z")

</div>

Unfortunately that’s the most I can help you from here, since it’s been a while since I debugged an issue like this.

However, a quick summary: you have 2 instances of the CLI installed for some reason. This could be because something simple such as having nvm installed as well as node, or something more complex. You need to figure out what caused the old version of the CLI to be installed and remove it.

---

<div class="post-metadata">

**Author:** ![themeix](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/themeix/32/4472_2.png) [@themeix](https://forum.ghost.org/u/themeix)\
**Post date:** [May 29, 2018, 4:51pm UTC](https://forum.ghost.org/t/ghost-cli-update-issue/1418/9 "2018-05-29T16:51:07Z")

</div>

I think, i may remove both Ghost-CLI and then reinstall it again… That would work

---

<div class="post-metadata">

**Author:** ![shahriar\_shojib](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/shahriar_shojib/32/709_2.png) [@shahriar\_shojib](https://forum.ghost.org/u/shahriar_shojib)\
**Post date:** [May 29, 2018, 9:03pm UTC](https://forum.ghost.org/t/ghost-cli-update-issue/1418/10 "2018-05-29T21:03:39Z")

</div>

Hello @themeix You can update your ghost using the following command  
`/usr/bin/ghost update` from your ghost installation directory.  
I suppose this has happened because you had a very old ghost cli version and the latest version did not replace the ghost cli on `/usr/local/bin/ghost` .

---

<div class="post-metadata">

**Author:** ![shahriar\_shojib](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/shahriar_shojib/32/709_2.png) [@shahriar\_shojib](https://forum.ghost.org/u/shahriar_shojib)\
**Post date:** [May 29, 2018, 9:17pm UTC](https://forum.ghost.org/t/ghost-cli-update-issue/1418/11 "2018-05-29T21:17:02Z")

</div>

@themeix you can additionally fix this by following commands  
`mv /usr/local/bin/ghost /usr/local/bin/ghost2 && ln -s /usr/bin/ghost /usr/local/bin/ghost`

---

<div class="post-metadata">

**Author:** ![themeix](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/themeix/32/4472_2.png) [@themeix](https://forum.ghost.org/u/themeix)\
**Post date:** [May 29, 2018, 9:19pm UTC](https://forum.ghost.org/t/ghost-cli-update-issue/1418/12 "2018-05-29T21:19:02Z")

</div>

Yes… it works… Both solution worked perfectly mate.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [June 12, 2018, 9:19pm UTC](https://forum.ghost.org/t/ghost-cli-update-issue/1418/13 "2018-06-12T21:19:02Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
