Mapping of Node and NPM to NodeBB Versions

Technical Support
  • I am running a very old version of NodeBB and am struggling to get it upgraded to the current version. Part of my difficulty is that I am working on bringing up the forum on a new server (production server is Debian 8, new server is Debian 9).

    I am bringing over my current running NodeBB v1.4.5 which is running on Node 6 and npm 3

    Could some one map out the versions of NodeBB with the appropriate version of Node.js and NPM I should be using?

    Ie., NodeBB < 1.x = Node version A, npm version B
    NodeBB > 1.x < 1.y = Node version D, npm version E
    Etc.

    I was able to upgrade from NodeBB v.1.4.5 to v1.5.3 but when I attempt to log in I get the dreaded invalid csrf log error and a Forbidden in my browser. I then tried to upgrade that to v1.6.1 but during the upgrade end up with this on my console:

    10/4 21:24:57 [9831] - info: [build]                     sounds  build started
    10/4 21:25:00 [9831] - error: [build]           client js bundle  build failed
    10/4 21:25:00 [9831] - error: [build] Encountered error during build step: Invalid assignment
    10/4 21:25:00 [9831] - error: SyntaxError: Invalid assignment
        at JS_Parse_Error.get (eval at <anonymous> (/usr/share/nodebb/myforum/node_modules/uglify-js/tools/node.js:20:1), <anonymous>:71:23)
        at /usr/share/nodebb/myforum/app.js:235:21
        at /usr/share/nodebb/myforum/node_modules/async/dist/async.js:3861:9
        at /usr/share/nodebb/myforum/node_modules/async/dist/async.js:421:16
        at iterateeCallback (/usr/share/nodebb/myforum/node_modules/async/dist/async.js:924:17)
        at /usr/share/nodebb/myforum/node_modules/async/dist/async.js:906:16
        at /usr/share/nodebb/myforum/node_modules/async/dist/async.js:3858:13
        at /usr/share/nodebb/myforum/src/meta/build.js:207:11
        at /usr/share/nodebb/myforum/node_modules/async/dist/async.js:3861:9
        at /usr/share/nodebb/myforum/node_modules/async/dist/async.js:421:16
    
    Error: undefined
    

    Is this a Node/npm issue or something else?

    Any help you may provide is greatly appreciated.

    Thank you.

  • I have had a small amount of success.

    I was able to copy over my production forum (v1.4.5) to my new dev server which has node 10 and npm 6 running on it.

    Without attempting to start my v1.4.5 forum on the server I upgraded to NodeBB v1.10.2 and this works.

    I will work through getting all of the bits working the correct way again, for some reason some custom javascript doesn't seem to work any longer. Once I feel this new dev server is "stable" I will attempt to bring up to 1.12.x.

    Thoughts?

  • @rod I was going to recommend essentially that. You should be able to jump straight to 1.12

    The custom JS stuff is likely due to needing some load event listeners.

  • The .travis.yml for each branch should be a good indicator of compatibility in general.


Suggested Topics