While the guidance on Ghost website is very clear, I did get issues that required steps in troubleshooting. Something to do with lodash and npm version 2 stuff (node_modules/knex requires lodash@'^3.7.0') that I read on one of the forums specifically the comment from ErisDS on 13/06.
Anyway, reading this I deleted node_modules followed by npm install and it worked. All commands in order as I did are listed below. If my previous posts were used to create the blog nothing here will require sudo or root privileges.
As before all this was done on Fedora 24 Linux OS and following commands will need to be changed where it mentions yoursite and username. If the path is different then obviously entire path needs to be replaced.
#Copy the entire site as backup. It will be a verbose copy an all access rights will be preserved. cp-avr/var/www/html/yoursite/home/<username>/
#Now in the site directory create a directory ghostlatestmkdir/var/www/html/yoursite/ghostlatest
#change directory to ghostlatestcd/var/www/html/yoursite/ghostlatest
#now download the latest ghost zip filecurl-LOkhttps://ghost.org/zip/ghost-latest.zip
#unzip the downloaded fileunzipghost-latest.zip
#Stop your Ghost instance (assuming Ghost is the alias#created as per my previous post else replace with #whatever alias was used with pm2). pm2stopGhost
#Change directory and delete old folders and filescd/var/www/html/yoursite
rm-rfcore
rm-rfindex.js
rm-rf*.md
rm-rf*.json
rm-rf/var/www/html/yoursite/content/themes/casper
#Remove node_modules because anyway the lodash issue will hit later on.rm-rfnode_modules
#Copy from ghost latest to site directory new folderscp-avr/var/www/html/yoursite/ghostlatest/core/var/www/html/yoursite
cp-avr/var/www/html/yoursite/ghostlatest/index.js/var/www/html/yoursite
cp-avr/var/www/html/yoursite/ghostlatest/*.md/var/www/html/yoursite
cp-avr/var/www/html/yoursite/ghostlatest/*.json/var/www/html/yoursite
#Optional if you haven't made customisation to default theme.cp-avr/var/www/html/yoursite/ghostlatest/content/themes/casper/var/www/html/yoursite/content/themes
#Install Latest Versionnpmcacheclean
npmupdate
npminstall--production
#Start to update dependenciesnpmstart--production
#Once above command is complete, stop the server and restart using pm2Ctrl+C
pm2startGhost