Update to v.1.18.5 don't work
-
@frankm what platform are you on? You should probably check the sharp install instructions.
Also please embed the log in a code block directly in the future.
-
Try running
npm install --production
manually, just to make sure it wasn't NodeBB.
You should get the same error. Then try the troubleshooting instructions here:
sharp - High performance Node.js image processing
Resize large images in common formats to smaller, web-friendly JPEG, PNG, WebP, GIF and AVIF images of varying dimensions
(sharp.pixelplumbing.com)
-
-
-
Ok, so many trouble..... with sharp again and again....
I have done an update and edit package.json to
"sharp": "0.29.1",
sharp with version 0.29.2 don't build on my Debian 11 Bullseye and i don't know why.
Updating NodeBB... 1. Updating package.json file with defaults... OK 2. Bringing base dependencies up to date... started > [email protected] install /home/user_radforum/nodebb_test/node_modules/sharp > (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy) sharp: Using cached /home/user_radforum/.npm/_libvips/libvips-8.11.3-linux-x64.tar.br internal/modules/cjs/loader.js:905 throw err; ^ Error: Cannot find module './index' Require stack: - /home/user_radforum/nodebb_test/node_modules/.bin/rc - /home/user_radforum/nodebb_test/node_modules/.bin/prebuild-install at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15) at Function.Module._load (internal/modules/cjs/loader.js:746:27) at Module.require (internal/modules/cjs/loader.js:974:19) at require (internal/modules/cjs/helpers.js:93:18) at Object.<anonymous> (/home/user_radforum/nodebb_test/node_modules/.bin/rc:2:10) at Module._compile (internal/modules/cjs/loader.js:1085:14) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10) at Module.load (internal/modules/cjs/loader.js:950:32) at Function.Module._load (internal/modules/cjs/loader.js:790:12) at Module.require (internal/modules/cjs/loader.js:974:19) { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/user_radforum/nodebb_test/node_modules/.bin/rc', '/home/user_radforum/nodebb_test/node_modules/.bin/prebuild-install' ] } make: Verzeichnis „/home/user_radforum/nodebb_test/node_modules/sharp/build“ wird betreten CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o AR(target) Release/obj.target/../node-addon-api/nothing.a COPY Release/nothing.a TOUCH Release/obj.target/libvips-cpp.stamp CXX(target) Release/obj.target/sharp-linux-x64/src/common.o ../src/common.cc:24:10: fatal error: vips/vips8: Datei oder Verzeichnis nicht gefunden 24 | #include <vips/vips8> | ^~~~~~~~~~~~ compilation terminated. make: *** [sharp-linux-x64.target.mk:139: Release/obj.target/sharp-linux-x64/src/common.o] Fehler 1 make: Verzeichnis „/home/user_radforum/nodebb_test/node_modules/sharp/build“ wird verlassen gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2
Please help me
-
Now i have done
npm install --unsafe-perm [email protected]
This file i have copied into node_modules
./nodebb upgrade
And now it works. But i don't understand the problem....
-
Are you installing as root?
-
@pitaj My normal update process is performed as a user. This is terminated with the error, see above.
I was only able to install the version [email protected] as root, with the --unsafe-perm option.
After that I was able to copy sharp. NodeBB does not run as root on the system.
-
Maybe it was just installing it somewhere else? Did you try deleting node_modules and then running
npm install
? -
Tested it this morning with my second forum like this.
./nodebb upgrade
Aborted with error. node_modules/ saved elsewhere. Then a
npm install
Then checked the version
npm list sharp
Was the right version.
~/nodebb_test$ npm list sharp
[email protected] /home/user/nodebb_test
└── [email protected]After that
./nodebb upgrade
Ran through flawlessly. Then rebuild & restart.
Oddly enough, I always have to run ./nodebb upgrade twice with this version until the forum works properly. But this should not be the problem here.
Now I'm on version 1.18.5 - a stony way.
Translated with www.DeepL.com/Translator (free version)
@pitaj Thank you!
-