Update to v.1.18.5 don't work

Solved Technical Support
  • @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.

  • @pitaj Debian 11 Bullseye

  • 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:


  • I was already able to solve the problem. Here is what I did.

    mv package.json /home/USER
    mv node_modules/ /home/USER
    npm install
    ./nodebb upgrade

    Now it works.

    @PitaJ Thanks

  • FrankMF FrankM has marked this topic as solved on
  • FrankMF FrankM has marked this topic as unsolved on
  • 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
      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: [
    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!

  • FrankMF FrankM has marked this topic as solved on

Suggested Topics

  • Admin - Can't add new categories

    Solved Technical Support
    0 Votes
    2 Posts

    FYI - I checked my Digital Ocean droplet and it said that Ubuntu needs a restart. Restarted everything and have my privileges back.

  • 0 Votes
    2 Posts

    If you are on nodebb 1.12.2 you should use the version of db search in your package.json. 4.0.6 is for nodebb 1.13.0 which isn't released yet.

  • 0 Votes
    1 Posts

    Hihi, i'm going to migrate the Ghost-Blog's topics to my new Nodebb site, there are dozens of topics, and i use the nodebb-plugin-blog-comments to move the topic to the Nodebb site, and my question is : How to map the old Ghost-Blog topic's url to the new Nodebb topic's route ?

    For example:

    There is a topic in Old Ghost-Blog: http://mysite.com/2016/06/23/guipin-jia/ And i migrated above topic to the new Nodebb: http://mysite.com/topic/12/guipin-jia/

    I wish that the nodebb can redirect the old Ghost-Blog's topics url to the new nodebb's topics url, when the users browser the old Ghost-Blog's urls~

    Please help, many many thanks~ @julian @psychobunny @baris @pichalite

  • Update vendors libs

    Technical Support
    0 Votes
    1 Posts

    Hi everybody!
    I want to suggest to upgrade vendor libs (you have old libs versions.). I tested replacement libs to new versions. Here is the result:

    public/vendor/ace public/vendor/bootbox/ [update: no] public/vendor/bootstrap/ [update: ok (interface lags? https://github.com/twbs/bootstrap/issues/18777)] public/vendor/buzz/ [update: ok] public/vendor/colorpicker/ [update: no] public/vendor/fontawesome/ [update: ok] public/vendor/mdl/ [update: ok] public/vendor/requirejs/ [update: ok] public/vendor/semver/ [update: no] public/vendor/slideout/ [update: js error] public/vendor/snackbar/ [update: js error] public/vendor/tinycon/ [update: js error] public/vendor/visibility/ [update: ok] public/vendor/xregexp/ [update: js error] public/vendor/jquery/bootstrap-tagsinput/ [update: no] public/vendor/jquery/css/ public/vendor/jquery/deserialize/ [update: ok] public/vendor/jquery/draggable-background/ [update: no] public/vendor/jquery/event/ [update: no] public/vendor/jquery/js/ (jquery - update: ok | jquery.form.min - update: ok) public/vendor/jquery/serializeObject/ [update: no] public/vendor/jquery/sortable/ [update: ok] public/vendor/jquery/textcomplete/ [update: ok] public/vendor/jquery/timeago/ [update: ok] public/vendor/autosize.js [update: no] public/vendor/nprogress.min.js [update: js error]
  • Error after update to 0.9.3

    Unsolved Technical Support
    0 Votes
    27 Posts

    I have run again ./nodebb setup , update the system , run in dev mode ...same problem .
    The database is crashing , not loading the topics .


    I dont know ..is strange , i have update both forums , and nodebb.es , have this problem .... 😥

    @julian can you please help me with this ? i am stuck .. 😞