How do I install NodeBB on Centos/Ubuntu?

November 24, 2015 1.1k views
Redis Node.js MEAN

Hello, I've been trying to install NodeBB on Centos/Ubuntu using tutorials I found. Even on NodeBB official site.

However, I've no luck yet. I'd appreciate if anyone can guide me installing it from scratch.

Is it because of wrong Node number? I've had many errors for example mmmagic cannot be installed and stuff. I have no idea

1 Answer


What guides have you tried to follow? Knowing which ones you've tried to use would at least give us a starting point so that we can better help you get things up and running.

Let me know what you've tried and I'll help you to get things setup. I'd like to get a feel for where you're running in to issues, otherwise, should you need to set things up again, you're likely to have a repeat run-in with the same issues :-).


When it comes to Ubuntu and Debian, if you're trying to use the package manager (i.e. apt-get) to do the NodeJS installation, you need to either source NodeJS direct (and manually compile it), or add a repository and run:

sudo apt-get update

before running:

sudo apt-get install -y nodejs

Specifically, nodejs should be the package you attempt to install (and not node). The reason for this is due to an existing package (i.e. node, which many tutorials reference as the installable package) having absolutely nothing to do with NodeJS, even in the slightest.


    That is the guide I am following.

    Finally on

    npm install

    I got endless installation of modules that finally stuck and unable to continue.

    Out of several attempt that I made i finally succeeded and managed to run ./nodebb setup
    But after this options

    Which database to use (0..n) (0) 'enter'

    I get mmmagic modules error, I tried npm rebuild mmmagic or install or remove but none of them works.

Have another answer? Share your knowledge.