How do I install NodeBB on Centos/Ubuntu?

Posted November 24, 2015 3.9k views

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

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
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.