Installing from source, which version of node / npm?

I’m trying to build and install from source. The python part so far looks good.
But the build crashes with a seg fault, just before that, I see a message saying the version of node might not be the right one. I installed it with the package manager. I guess I’ll need to install another one, but do you know which?

We compile with node 4.7 and use this for production and release builds.

Can you paste the full error you’re having. The error we spit out there might not be too useful.

Thanks @matt

I have just re tried make after installing node:
$ node --version
$ npm --version

And the error message appears while building assets:

command failed [node_modules/.bin/webpack -p --bail] via [/home/ubuntu/sentry]
    Traceback (most recent call last):
      File "/home/ubuntu/sentry/src/sentry/utils/distutils/commands/", line 114, in _build
      File "/home/ubuntu/sentry/src/sentry/utils/distutils/commands/", line 135, in _build_static
      File "/home/ubuntu/sentry/src/sentry/utils/distutils/commands/", line 143, in _run_command
        return check_output(cmd, cwd=self.work_path, env=env)
      File "/usr/lib/python2.7/", line 574, in check_output
        raise CalledProcessError(retcode, cmd, output=output)
    CalledProcessError: Command '['node_modules/.bin/webpack', '-p', '--bail']' returned non-zero exit status -9
    unable to build Sentry's static assets!
    Hint: You might be running an invalid version of NPM.

I will try with version 4.7 as you mention.

Can you try running that directly and see what it complains about? I guess we’re hiding the actual issue.

That’s weird, I’m not really familiar with node, but that command seems to work ok:

Great! I have installed node 4.7 and it builds :slight_smile:
Thanks @matt