Problem with sharp module on Debian - fixed

I have been having trouble with the update of Ghost for the last few upgrades due to an error in the sharp npm module.
…"",“stack”:"InternalServerError: Sharp wasn’t installed\n at new InternalServerError …

The symptom was the site crashed when trying to add a photo! Tracked this down by running ghost using the ‘ghost run’ command and looking at the output.
Initial workaround was to remove the sharp modules by navigating to the folder with the latest version and running ‘npm uninstall sharp’ and then restarting ghost.
Ghost error handing allowed the absence of the sharp module but this seemed a bit unsatisfactory.
However reading the sharp npm site here …

says that …
‘ There are changes in the C++11 ABI when using v5.1+ of the g++ compiler. If you have installed libvips-dev via package manager on an OS such as Debian testing/unstable, you can pass the required value of the _GLIBCXX_USE_CXX11_ABI macro using the --sharp-cxx11 flag.’

So I navigated back the the theme directory, after uninstalling sharp, and ran
‘npm install --sharp-cxx11=1’ to see if this worked for me!
It does! Hurray!
sharp installed successfully and the add photo functionality now works fine in ghost with no errors.

I am sure if you are using the official stack there will be no such problems but this fixed my install.