Hi,
I’ve been trying to install ghost on the same stack I had some time ago for the same purpose. I’m using a VPS from Ionos, I have root access, I can select the O.S. that I want. I installed Ubuntu 22.04. There’s seemingly no reason for having issues with what I want to do.
I still face lots of problems. The first occurs when trying to install Nodejs. I get the following error :
Preparing to unpack …/nodejs_18.20.6-1nodesource1_amd64.deb …
Unpacking nodejs (18.20.6-1nodesource1) over (12.22.9~dfsg-1ubuntu3.6) …
dpkg: error processing archive /var/cache/apt/archives/nodejs_18.20.6-1nodesource1_amd64.deb (–unpack):
trying to overwrite ‘/usr/share/systemtap/tapset/node.stp’, which is also in package
libnode72:amd64 12.22.9~dfsg-1ubuntu3.6
Errors were encountered while processing:
/var/cache/apt/archives/nodejs_18.20.6-1nodesource1_amd64.deb
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
Then, when trying to install ghost package, I get a message telling that npm is not installed so I install it. When it’s done, I try again to install Ghost but I get this error :
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: ‘abbrev@3.0.0’,
npm WARN EBADENGINE required: { node: ‘^18.17.0 || >=20.5.0’ },
npm WARN EBADENGINE current: { node: ‘v12.22.9’, npm: ‘8.5.1’ }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: ‘fs-extra@11.1.1’,
npm WARN EBADENGINE required: { node: ‘>=14.14’ },
npm WARN EBADENGINE current: { node: ‘v12.22.9’, npm: ‘8.5.1’ }
npm WARN EBADENGINE }
It seems to be related to the previous error, as I understand. So the first time when I got this error, I tried a second time to install Nodejs but it still didn’t work and it had the curious effect of deleting npm. Or, at least, further use of npm after that returned an error indicating that npm wasn’t installed.
Finally, I tried to uninstall libnode with “sudo apt remove libnode72”. I was quite puzzled to see that doing so does in the same time launch an install of Nodejs and results with the same first error quoted before.
I’m quite lost, right now, with all that. I’ve never had such problems installing ghost. I’d really appreciate some help. Thank you really much if anyone can give me some advices.