NodeBB

From iFixWiki
Revision as of 00:08, 30 January 2021 by Ifixadmin (talk | contribs)

NodeBB is a forum software that's modern, fast, and efficient. In contrast to most forums which use PHP, NodeBB leverages Node.js and JavaScript to create a high performance website.

Issues

SyntaxError: Unexpected end of JSON

When trying to setup or upgrade nodeBB sometimes an error pops up that says

  SyntaxError: Unexpected end of JSON input while parsing near '...party/-/connect-multi'

Solution[1]

Run the command:

  npm cache clean --force

TypeError: shim$1.Parser.looksLikeNumber is not a function nodebb

After upgrading nodeBB, sometimes an error appears that says

    nodebb/node_modules/yargs/build/index.cjs:2804
              if (shim$1.Parser.looksLikeNumber(arg) &&
                         ^
                       TypeError: shim$1.Parser.looksLikeNumber is not a function

Solution

Update the npm dependencies by running the command

  npm update

References