Local Ghost install broken

Installing the latest Manjaro updates somehow broke and destroyed my local Ghost CMS installation. I already tried reinstalling nodejs, yarn and also all the Ghost hints, like ghost cli, with force mode and even with root and everything to no avail. I would be really happy If anyone could please help me out or provide me any hint into the right direction how to repair or solve the issue. Thanks!

Please see the following log output:

Debug Information:
OS: ManjaroLinux, v23.0.0 with KDE Plasma
Node Version: v18.16.0
Ghost Version: 5.53.4
Ghost-CLI Version: 1.24.0
Environment: development
Command: ‘ghost update 5.53.4 --force’
Message: Command failed: yarn install --no-emoji --no-progress
warning …/…/package.json: No license field
warning ghostAT5.53.4: The engine “cli” appears to be invalid.
warning Resolution field “ATelastic/elasticsearchAT8.5.0” is incompatible with requested version “ATelastic/elasticsearchAT8.6.0”
warning Resolution field “momentAT2.24.0” is incompatible with requested version “momentAT^2.29.1”
warning Resolution field “ATtryghost/errorsAT1.2.24” is incompatible with requested version “ATtryghost/errorsATghost update 5.53.4 --force1.2.21”
warning Resolution field “ATtryghost/errorsAT1.2.24” is incompatible with requested version “ATtryghost/errorsAT^1.2.25”
warning Resolution field “ATtryghost/loggingAT2.4.4” is incompatible with requested version “ATtryghost/loggingAT^2.4.5”
warning Resolution field “momentAT2.24.0” is incompatible with requested version “momentAT2.29.1”
warning Resolution field “momentAT2.24.0” is incompatible with requested version "momentAT^2.27.0"ghost update 5.53.4 --force
warning Resolution field “moment-timezoneAT0.5.23” is incompatible with requested version “moment-timezoneAT^0.5.31”
warning Resolution field “momentAT2.24.0” is incompatible with requested version “momentAT2.29.4”
warning Resolution field “ATtryghost/errorsAT1.2.24” is incompatible with requested version “ATtryghost/errorsAT^1.2.25”
warning Resolution field “momentAT2.24.0” is incompatible with requested version “momentAT2.29.4”
warning Resolution field “moment-timezoneAT0.5.23” is incompatible with requested version “moment-timezoneAT0.5.34”
warning Resolution field “ATtryghost/errorsAT1.2.24” is incompatible with requested version “ATtryghost/errorsAT1.2.21”
warning Resolution field “momentAT2.24.0” is incompatible with requested version “momentAT2.29.1"ghost update 5.53.4 --force
warning Resolution field “momentAT2.24.0” is incompatible with requested version “momentAT2.29.3”
warning Resolution field “moment-timezoneAT0.5.23” is incompatible with requested version “moment-timezoneAT^0.5.33”
warning Resolution field “momentAT2.24.0” is incompatible with requested version “momentAT^2.27.0”
warning Resolution field “moment-timezoneAT0.5.23” is incompatible with requested version “moment-timezoneAT^0.5.31”
warning Resolution field “momentAT2.24.0” is incompatible with requested version “momentAT2.27.0”
warning Resolution field “ATtryghost/errorsAT1.2.24” is incompatible with requested version “ATtryghost/errorsAT1.2.25”
warning Resolution field “ATtryghost/loggingAT2.4.4” is incompatible with requested version “ATtryghost/loggingAT2.4.5”
warning Resolution field “ATtryghost/loggingAT2.4.4” is incompatible with requested version “ATtryghost/loggingAT^2.4.5”
warning Resolution field “ATtryghost/errorsAT1.2.24” is incompatible with requested version “ATtryghost/errorsAT1.2.25”
warning Resolution field “ATtryghost/loggingAT2.4.4” is incompatible with requested version “ATtryghost/loggingAT2.4.5”
warning Resolution field “momentAT2.24.0” is incompatible with requested version “momentAT^2.29.1”
warning “ATtryghost/kg-lexical-html-renderer > ATlexical/rich-textAT0.11.1” has unmet peer dependency “ATlexical/selectionAT0.11.1”.
warning “ATtryghost/kg-lexical-html-renderer > ATlexical/rich-textAT0.11.1” has unmet peer dependency “ATlexical/utilsAT0.11.1”.
warning " > bookshelfAT1.2.0” has incorrect peer dependency “knexAT>=0.15.0 <0.22.0”.
error /home/axxes/ghostbase/versions/5.53.4/node_modules/re2: Command failed.
Exit code: 7
Command: install-from-cache --artifact build/Release/re2.node --host-var RE2_DOWNLOAD_MIRROR --skip-path-var RE2_DOWNLOAD_SKIP_PATH --skip-ver-var RE2_DOWNLOAD_SKIP_VER || npm run rebuild
Arguments:
Directory: /home/axxes/ghostbase/versions/5.53.4/node_modules/re2
Output:
Trying LINKs://github.com/uhop/node-re2/releases/download/1.18.3/linux-x64-108.br …
Writing to build/Release/re2.node …
The verification has failed: building from sources …
Building locally …
/usr/lib/node_modules/npm/lib/es6/validate-engines.js:31
throw err
^

TypeError: Class extends value undefined is not a constructor or null
at Object. (/usr/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:136:4)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object. (/usr/lib/node_modules/npm/node_modules/cacache/lib/content/read.js:4:13)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1308:10)

Node.js v18.16.0
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason “7”.] {
code: ‘ERR_UNHANDLED_REJECTION’
}

Node.js v18.16.0
/usr/lib/node_modules/npm/lib/es6/validate-engines.js:31
throw err
^

TypeError: Class extends value undefined is not a constructor or null
at Object. (/usr/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:136:4)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object. (/usr/lib/node_modules/npm/node_modules/cacache/lib/content/read.js:4:13)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1308:10)

Node.js v18.16.0

yarn install v1.22.19
[1/5] Validating package.json…
[2/5] Resolving packages…
[3/5] Fetching packages…
[4/5] Linking dependencies…
[5/5] Building fresh packages…
info Visit LINKs://yarnpkg.com/en/docs/cli/install for documentation about this command.

Exit code: 7

--------------- stdout ---------------
yarn install v1.22.19
[1/5] Validating package.json…
[2/5] Resolving packages…
[3/5] Fetching packages…
[4/5] Linking dependencies…
[5/5] Building fresh packages…
info Visit LINKs://yarnpkg.com/en/docs/cli/install for documentation about this command.

--------------- stderr ---------------
warning …/…/package.json: No license field
warning ghostAT5.53.4: The engine “cli” appears to be invalid.
warning Resolution field “ATelastic/elasticsearchAT8.5.0” is incompatible with requested version “ATelastic/elasticsearchAT8.6.0”
warning Resolution field “momentAT2.24.0” is incompatible with requested version “momentAT^2.29.1”
warning Resolution field “ATtryghost/errorsAT1.2.24” is incompatible with requested version “ATtryghost/errorsAT1.2.21”
warning Resolution field “ATtryghost/errorsAT1.2.24” is incompatible with requested version “ATtryghost/errorsAT^1.2.25”
warning Resolution field “ATtryghost/loggingAT2.4.4” is incompatible with requested version “ATtryghost/loggingAT^2.4.5”
warning Resolution field “momentAT2.24.0” is incompatible with requested version “momentAT2.29.1”
warning Resolution field “momentAT2.24.0” is incompatible with requested version “momentAT^2.27.0”
warning Resolution field “moment-timezoneAT0.5.23” is incompatible with requested version “moment-timezoneAT^0.5.31”
warning Resolution field “momentAT2.24.0” is incompatible with requested version “momentAT2.29.4”
warning Resolution field “ATtryghost/errorsAT1.2.24” is incompatible with requested version “ATtryghost/errorsAT^1.2.25"ghost update 5.53.4 --force
warning Resolution field “momentAT2.24.0” is incompatible with requested version “momentAT2.29.4”
warning Resolution field “moment-timezoneAT0.5.23” is incompatible with requested version “moment-timezoneAT0.5.34”
warning Resolution field “ATtryghost/errorsAT1.2.24” is incompatible with requested version “ATtryghost/errorsAT1.2.21”
warning Resolution field “momentAT2.24.0” is incompatible with requested version “momentAT2.29.1”
warning Resolution field “momentAT2.24.0” is incompatible with requested version “momentAT2.29.3”
warning Resolution field “moment-timezoneAT0.5.23” is incompatible with requested version “moment-timezoneAT^0.5.33”
warning Resolution field “momentAT2.24.0” is incompatible with requested version “momentAT^2.27.0”
warning Resolution field “moment-timezoneAT0.5.23” is incompatible with requested version “moment-timezoneAT^0.5.31”
warning Resolution field “momentAT2.24.0” is incompatible with requested version “momentAT2.27.0”
warning Resolution field “ATtryghost/errorsAT1.2.24” is incompatible with requested version “ATtryghost/errorsAT1.2.25”
warning Resolution field “ATtryghost/loggingAT2.4.4” is incompatible with requested version “ATtryghost/loggingAT2.4.5”
warning Resolution field “ATtryghost/loggingAT2.4.4” is incompatible with requested version “ATtryghost/loggingAT^2.4.5”
warning Resolution field “ATtryghost/errorsAT1.2.24” is incompatible with requested version “ATtryghost/errorsAT1.2.25”
warning Resolution field “ATtryghost/loggingAT2.4.4” is incompatible with requested version “ATtryghost/loggingAT2.4.5”
warning Resolution field “momentAT2.24.0” is incompatible with requested version “momentAT^2.29.1”
warning “ATtryghost/kg-lexical-html-renderer > ATlexical/rich-textAT0.11.1” has unmet peer dependency “ATlexical/selectionAT0.11.1”.
warning “ATtryghost/kg-lexical-html-renderer > ATlexical/rich-textAT0.11.1” has unmet peer dependency “ATlexical/utilsAT0.11.1”.
warning " > bookshelfAT1.2.0” has incorrect peer dependency “knexAT>=0.15.0 <0.22.0”.ghost update 5.53.4 --force
error /home/axxes/ghostbase/versions/5.53.4/node_modules/re2: Command failed.
Exit code: 7
Command: install-from-cache --artifact build/Release/re2.node --host-var RE2_DOWNLOAD_MIRROR --skip-path-var RE2_DOWNLOAD_SKIP_PATH --skip-ver-var RE2_DOWNLOAD_SKIP_VER || npm run rebuild
Arguments:
Directory: /home/axxes/ghostbase/versions/5.53.4/node_modules/re2
Output:
Trying LINKs://github.com/uhop/node-re2/releases/download/1.18.3/linux-x64-108.br …
Writing to build/Release/re2.node …
The verification has failed: building from sources …
Building locally …
/usr/lib/node_modules/npm/lib/es6/validate-engines.js:31
throw err
^

TypeError: Class extends value undefined is not a constructor or null
at Object. (/usr/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:136:4)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object. (/usr/lib/node_modules/npm/node_modules/cacache/lib/content/read.js:4:13)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1308:10)

Node.js v18.16.0
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason “7”.] {
code: ‘ERR_UNHANDLED_REJECTION’
}

Node.js v18.16.0
/usr/lib/node_modules/npm/lib/es6/validate-engines.js:31
throw err
^

TypeError: Class extends value undefined is not a constructor or null
at Object. (/usr/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:136:4)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object. (/usr/lib/node_modules/npm/node_modules/cacache/lib/content/read.js:4:13)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1308:10)

Node.js v18.16.0

I might add that Ghost was working fine for quite some time since the 5.3x versions and that it suddenly stopped working after doing Updates for Manjaro. Even reinstalling NODEJS, NPM does not change the situation. I already also did to no avail. And all the recommendations like <npm install -g ghost-cli@latest> and <ghost update 5.53.4 --force> are only throwing these errors.

Please, what else shall I try or do_

Ah ha! About 5.30 is when a new incompatibility with MariaDB and MySQL5.7 appeared. (They were officially unsupported at 5.0 but worked.)

Can you check what database version you’re running please?

1 Like

rm -rf node_modules
yarn install

Thanks for asking… it seems my local install uses sqlite.

I deleted the directory and reinstalled yarn. Now, Ghost as a command is not available anymore. Even trying to reinstall does not work.

There are at least 4 or 5 similar errors like mine when searching the web. One of them it helped and for others to change the version of NODEJS. I already tried both to no effect.

In the meantime I tried to reinstall NODEJS and NPM and the Manjaro add-remove GUI only throws errors and does not let me doing it. I really have no clue what caused it and so I am also crossposting this into the manjaro forum to find out what happened and if there is a way to repair this. I only want to have back my working Ghost install. Thanks for your support.

My apologies. I missed that this was a local install! :)