Hi all,
I have a problem with my upgrade of my nodebb installation.
Details of my system:
lsb_release -a Ubuntu 18.04.6 LTS
node -v v16.20.2
npm -v 8.19.4
nvm -v 0.39.3
I installed nodejs 18 and realized (too late ... ) it will not work with my OS version on my machine.
I uninstalled nodejs 18 and installed 16 through nvm.
And node -v
shows, that I am on nodejs v16.20.2
So I don't understand, why I get the error:
node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by node)
When I upgrade my forum, I get the following error:
npm WARN deprecated [email protected]: use nodebb-plugin-emoji instead.
npm ERR! code 1
npm ERR! path /opt/nodebb/node_modules/sharp
npm ERR! command failed
npm ERR! command sh -c -- (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
npm ERR! node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by node)
npm ERR! node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by node)
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-09-01T14_25_57_983Z-debug-0.log
Error installing dependencies!
message: Command failed: npm install --omit=dev
stdout: null
stderr: null
/opt/nodebb/src/cli/package-install.js:138
throw e;
^
Error: Command failed: npm install --omit=dev
at checkExecSyncError (node:child_process:861:11)
at Object.execSync (node:child_process:932:15)
at Object.pkgInstall.installAll (/opt/nodebb/src/cli/package-install.js:129:9)
at Object.<anonymous> (/opt/nodebb/src/cli/index.js:52:18)
at Module._compile (node:internal/modules/cjs/loader:1198:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
at Module.load (node:internal/modules/cjs/loader:1076:32)
at Function.Module._load (node:internal/modules/cjs/loader:911:12)
at Module.require (node:internal/modules/cjs/loader:1100:19) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 8525,
stdout: null,
stderr: null
}
Can somebody please help me, so that I can upgrade my installation?
Thanks,
arizona