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.