# Issue when I try to upgrade Ghost Blog

**URL:** <https://forum.ghost.org/t/issue-when-i-try-to-upgrade-ghost-blog/4957>\
**Category:** Developer help\
**Created:** [January 11, 2019, 3:55am UTC](https://forum.ghost.org/t/issue-when-i-try-to-upgrade-ghost-blog/4957 "2019-01-11T03:55:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tphanix](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/tphanix/32/2283_2.png) [@tphanix](https://forum.ghost.org/u/tphanix)\
**Post date:** [January 11, 2019, 3:55am UTC](https://forum.ghost.org/t/issue-when-i-try-to-upgrade-ghost-blog/4957/1 "2019-01-11T03:55:21Z")

</div>

Hello,

I am using Ghost version 0.11.1, and now want to upgrade Ghost version 2.0. But I could not do that. I got an issue with node as below:

> root@ghost-1gb-sgp1-01:~# ghost update  
> /usr/local/lib/node\_modules/ghost-cli/node\_modules/yargs/node\_modules/find-up/index.js:5  
> module.exports = (filename, opts = {}) =\> {  
> ^
> 
> SyntaxError: Unexpected token =  
> at exports.runInThisContext (vm.js:53:16)  
> at Module.\_compile (module.js:374:25)  
> at Object.Module.\_extensions…js (module.js:417:10)  
> at Module.load (module.js:344:32)  
> at Function.Module.\_load (module.js:301:12)  
> at Module.require (module.js:354:17)  
> at require (internal/module.js:12:17)  
> at pkgUp (/usr/local/lib/node\_modules/ghost-cli/node\_modules/yargs/yargs.js:510:20)  
> at guessVersion (/usr/local/lib/node\_modules/ghost-cli/node\_modules/yargs/yargs.js:812:17)  
> at Object.version (/usr/local/lib/node\_modules/ghost-cli/node\_modules/yargs/yargs.js:789:13)

It also got the same issue with another ghost command

> root@ghost-1gb-sgp1-01:~# ghost --version  
> /usr/local/lib/node\_modules/ghost-cli/node\_modules/yargs/node\_modules/find-up/index.js:5  
> module.exports = (filename, opts = {}) =\> {  
> ^
> 
> SyntaxError: Unexpected token =  
> at exports.runInThisContext (vm.js:53:16)  
> at Module.\_compile (module.js:374:25)  
> at Object.Module.\_extensions…js (module.js:417:10)  
> at Module.load (module.js:344:32)  
> at Function.Module.\_load (module.js:301:12)  
> at Module.require (module.js:354:17)  
> at require (internal/module.js:12:17)  
> at pkgUp (/usr/local/lib/node\_modules/ghost-cli/node\_modules/yargs/yargs.js:510:20)  
> at guessVersion (/usr/local/lib/node\_modules/ghost-cli/node\_modules/yargs/yargs.js:812:17)  
> at Object.version (/usr/local/lib/node\_modules/ghost-cli/node\_modules/yargs/yargs.js:789:13)

I am not a developer, so hard to understand what happened with node. Could you please help me find out and how to solve this issue? also let me know upgrade to version 2.0.  
Thank you so much.

Here are some information about Ghost environment.

- Ghost blog version 0.11
- Ubuntu 16.04.2
- Ghost installed as a SystemD.
- My URL: [https://tien-phan.com](https://tien-phan.com)

---

<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:** [January 11, 2019, 4:28am UTC](https://forum.ghost.org/t/issue-when-i-try-to-upgrade-ghost-blog/4957/2 "2019-01-11T04:28:18Z")

</div>

Here are the docs for upgrading to Ghost 2.0. Note that you need to be on 1.x to migrate to 2.x

[https://docs.ghost.org/faq/upgrade-to-ghost-2-0/](https://docs.ghost.org/faq/upgrade-to-ghost-2-0/)

The CLI won’t work for Ghost 0.x, and based on your context, it looks like you’re trying to use it for that. If you need help migrating from 0.x to 1.x, check out the docs:

[https://docs.ghost.org/faq/upgrade-to-ghost-1-0/](https://docs.ghost.org/faq/upgrade-to-ghost-1-0/)

---

<div class="post-metadata">

**Author:** ![tphanix](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/tphanix/32/2283_2.png) [@tphanix](https://forum.ghost.org/u/tphanix)\
**Post date:** [January 11, 2019, 4:32am UTC](https://forum.ghost.org/t/issue-when-i-try-to-upgrade-ghost-blog/4957/3 "2019-01-11T04:32:47Z")

</div>

thank you @vikaspotluri123 , sure I did follow those. But, it returned an issue with node js as I mentioned on my question. Now I need to fix that before continue to upgrade.

---

<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:** [January 11, 2019, 4:44am UTC](https://forum.ghost.org/t/issue-when-i-try-to-upgrade-ghost-blog/4957/4 "2019-01-11T04:44:16Z")

</div>

> [@vikaspotluri123](#):
>
> The CLI won’t work for Ghost 0.x, and based on your context, it looks like you’re trying to use it for that. If you need help migrating from 0.x to 1.x, check out the docs:

Are you working with a Ghost 1.x instance? Could you provide more details as to what you’ve done so far?

---

<div class="post-metadata">

**Author:** ![tphanix](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/tphanix/32/2283_2.png) [@tphanix](https://forum.ghost.org/u/tphanix)\
**Post date:** [January 11, 2019, 4:54am UTC](https://forum.ghost.org/t/issue-when-i-try-to-upgrade-ghost-blog/4957/5 "2019-01-11T04:54:45Z")

</div>

I am using Ghost version 0.11.7 and used ghost CLI to upgrade.

> 1837 systemctl status ghost  
> 1838 npm install ghost-cli  
> 1839 npm install ghost-cli -g  
> 1840 ghost update

So maybe I need to read the instruction for migrating from 0.x to 1.x. Thank you.

---

<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:** [January 25, 2019, 4:54am UTC](https://forum.ghost.org/t/issue-when-i-try-to-upgrade-ghost-blog/4957/6 "2019-01-25T04:54:48Z")

</div>

Closed on January 25, 2019, 4:54am UTC

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