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