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
v7.3.0
$ npm --version
3.10.10
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/build_assets.py", line 114, in _build
self._build_static()
File "/home/ubuntu/sentry/src/sentry/utils/distutils/commands/build_assets.py", line 135, in _build_static
env=env)
File "/home/ubuntu/sentry/src/sentry/utils/distutils/commands/base.py", line 143, in _run_command
return check_output(cmd, cwd=self.work_path, env=env)
File "/usr/lib/python2.7/subprocess.py", 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
Thanks @matt