Command not found / Cant install/setup nodebb

Technical Support
  • This is a new problem, I have recently had which I didnt have before on other installs.

    root@xxxx [/home/xxxx/nodebb]# ./nodebb setup
    ./nodebb: line 9: which: command not found
    ./nodebb: line 98: : command not found

    any clues on how to resolve this? looks like its an issue with the "npm install" command as it times out

    npm ERR! Command failed: git clone --template=/root/.npm/_git-remotes/_templates --mirror git:// /root/.npm/_git-remotes/git-github-com-wzrdtales-simple-recaptcha-git-d2b10e99
    npm ERR![0:]: errno=Connection timed out
    npm ERR! fatal: unable to connect a socket (Connection timed out)

    could this be the issue and if so how do I resolve it?


  • We moved away from a bash script in the latest versions of NodeBB, so you could give that a try.

    Otherwise, it seems the which command isn't leading to a program on your OS... what OS are you using?

  • Im on Centos, and what do you mean you moved away from Bash scripts, when your documentation instructs me so?

    or am i missing something here?

  • The nodeBB startup script used to be a bash script in 0.6, while 0.7 uses nodeJS for it.

    which returns the pathnames of the files (or links) which would be executed in the current environment. (from man page)

    ./nodebb: line 9: which: command not found indicates, that your system is missing this tool.

    Installing which by executing

    su -c 'yum install which' #asking for root password

    should solve your problem. 🙂

  • Hi @rbeer thanks for your reply, I tried the command you provided, but its already installed...

    However, what seem to help was making some changes to git due to a timeout issue or proxy issue.

    [url ""]
    insteadOf = [email protected]:
    [url "https://"]
    insteadOf = git://

    Once I done this, it installed properly and now runs.


Suggested Topics

  • NodeBB for articles

    Unsolved Technical Support
    0 Votes
    3 Posts

    Thanks, had a look at the Lavender theme but couldn't actually see it like articles.

    TBH, all in all, its a more informative topic list is what I need.
    Having more Teaser text and also enable in teaser text under the title would definitely make it look like list of articles.
    How can this be achieved..


  • 0 Votes
    3 Posts

    @pitaj @crazycells It depends on how the migration was done, and how the instance is set up.

    An "invalid session" error means the server-side session data is missing.

    If you are using redis as session store, and you don't bother to copy it to the new server (because it's just transient data), then this can happen...

    Or if you're using Mongodb only, but you only migrated the objects collection (which is all that is strictly required).

    @crazycells Either way, if they see the message, clicking "ok" should automatically clear their local browser session. If not, that may be a bug.

  • Notification/alert

    Technical Support
    0 Votes
    1 Posts

    Is there a way or maybe a plugin to allow an admin to put something at the top of the forum with a message that a user can dismiss ?

  • 0 Votes
    6 Posts

    @rahmon is the repeated http in the actual file or is that a copy-paste error? It should only be one.

    When you go to access your site, do you enter in your browser? If not, you should use whatever URL you actually access your site at in that field instead.

    For instance, we have in our "url" field in config.json.

  • 0 Votes
    1 Posts

    I have a problem after updating my forum to version 1.4.5 (from 1.4.2)
    The Problem is user cant login to there account.

    nodebb LOG:
    17/3 12:47:48 [21825] - warn: [deprecated] Accessing stylesheet.css from / is deprecated. Use /assets/stylesheet.css to access this file.
    17/3 12:47:48 [21825] - warn: [deprecated] Accessing nodebb.min.js from / is deprecated. Use /assets/nodebb.min.js to access this file.
    17/3 16:22:13 [21825] - warn: [deprecated] Accessing stylesheet.css from / is deprecated. Use /assets/stylesheet.css to access this file.
    17/3 16:22:13 [21825] - warn: [deprecated] Accessing nodebb.min.js from / is deprecated. Use /assets/nodebb.min.js to access this file.
    17/3 16:24:33 [21825] - warn: [deprecated] Accessing vendor/fontawesome/fonts/fontawesome-webfont.woff2 from / is deprecated. Use /assets/vendor/fontawesome/fonts/fontawesome-webfont.woff2 to access this file.
    17/3 16:24:58 [21825] - error: /login
    invalid csrf token

    Chrome DEV Log: WebSocket connection to 'wss://' failed: Error during WebSocket handshake: Unexpected response code: 404

    When you are already logged in evrything works fine, else comes a session expired invalide csrf token by login.
    I hope someone can help me with that problem,
    Have a nice day,