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 --upgrade

    and now, when i cmd+f5 at topic page, node crash with

    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)

  • Admin

    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 semver@'~2.0.0' but will load
    npm WARN unmet dependency /www/node_modules/semver,
    npm WARN unmet dependency which is version 2.2.1
    nodebb@0.3.2 /www
    └── validator@3.2.1

  • Admin

    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

    root@wasd:/www# npm ls validator
    nodebb@0.3.2 /www
    └── validator@3.2.1

  • Admin

    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...

  • Admin

    I don't think you ran npm install did you?

Log in to reply

Suggested Topics

| |