Ubuntu 16.04 LTS is shipped with Node.js v6.3 which is not supported by Ghost.
You will be able to install dependencies with
npm install --production, but
npm run --production will return the following error message and exit:
ERROR: Unsupported version of Node
Ghost needs Node version ~0.10.0 || ~0.12.0 || ^4.2.0 you are using version 6.3.0
Please see http://support.ghost.org/supported-node-versions/ for more information
In order to be able to run your Ghost instance, you will have to uninstall Node.js v6.3 and install Node.js v4.4. We won’t be installing Node.js v0.10 because it will cease to be actively supported in October 2016.
Please follow the steps below to make your Ubuntu 16.04 LTS compatible with Ghost.
$ sudo apt-get purge nodejs npm # Remove pre-installed Node.js and npm
$ curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - # Add Node.js v4 repository
$ sudo apt-get install -y nodejs
$ node --version # Check your Node.js version
Now you should be able to run Ghost on Ubuntu 16.04 LTS.
$ npm start --production
> firstname.lastname@example.org start /var/www/samoylov
> node index
Migrations: Up-to-date at version 005
Ghost is running in production...
Your blog is now available on https://samoylov.tech
Ctrl+C to shut down
Don’t hesitate contacting me if you’re having issues with your Ghost instance.