@venkat123 You need to run ./nodebb upgrade to update the dependencies. If running that didn't change the mentions version, then something went wrong with the command, or perhaps the mentions plugin is a symlink (and thus does not get updated).
crash node after update topic page
-
crash node after update topic page
i make
npm install
ls -d node_modules/nodebb* | xargs -n1 basename | xargs npm update
node app --upgradeand now, when i cmd+f5 at topic page, node crash with
/www/src/webserver.js:569
return sanitize(content).escape();
^
TypeError: undefined is not a function
at /www/src/webserver.js:569:15
at async.waterfall.topic_url (/www/src/webserver.js:570:9)
at fn (/www/node_modules/async/lib/async.js:579:34)
at Object._onImmediate (/www/node_modules/async/lib/async.js:495:34)
at processImmediate [as _immediateCallback] (timers.js:330:15) -
Can you check the version of
validator
installed? It should be ~3.2.1.npm ls validator
-
@julian
npm WARN unmet dependency /www/node_modules/nodebb-plugin-finder requires [email protected]'~2.0.0' but will load
npm WARN unmet dependency /www/node_modules/semver,
npm WARN unmet dependency which is version 2.2.1
[email protected] /www
āāā [email protected] -
Oh, looks like your NodeBB core is not up to date. Please
git pull
. -
after
node app --upgrade
error: [upgrade] Errors were encountered while updating the NodeBB schema: Error: ERR Operation against a key holding the wrong kind of value
-
validator
[email protected]:/www# npm ls validator
[email protected] /www
āāā [email protected] -
PLease let me know the context of that error -- I need to know what it tried doing when it was upgrading and threw that error...
-
I don't think you ran
npm install
did you?