Graviton-Code-Editor/Graviton-App

[Bug] Graviton won't build from source.

midyh opened this issue · 4 comments

midyh commented

Describe the bug
Running npm start results in an error which prevents Graviton from starting.

To Reproduce
Steps to reproduce the behavior:

  1. Clone Graviton-App to local machine
  2. Run npm install
  3. Run npm start
  4. See error

Expected behavior
Expected Graviton to launch.

Desktop (please complete the following information):

  • OS: Ubuntu 20.10
  • Graviton version: 2.1.5

Additional context
Error:
/home/user/Coding/Graviton-App/node_modules/electron/dist/electron exited with signal SIGSEGV

Could you please share the full error/log you got? Thanks!

midyh commented

Hey there. Here is the npm error log:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
2 info using npm@6.14.8
3 info using node@v12.18.2
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle graviton@2.1.5~prestart: graviton@2.1.5
6 info lifecycle graviton@2.1.5~start: graviton@2.1.5
7 verbose lifecycle graviton@2.1.5~start: unsafe-perm in lifecycle true
8 verbose lifecycle graviton@2.1.5~start: PATH: /usr/share/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/user/Coding/Graviton-App/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/user/Android/sdk/platform-tools:/home/user/Android/sdk/cmdline-tools/latest/bin:/home/user/.npm-packages/bin
9 verbose lifecycle graviton@2.1.5~start: CWD: /home/user/Coding/Graviton-App
10 silly lifecycle graviton@2.1.5~start: Args: [
10 silly lifecycle   '-c',
10 silly lifecycle   'npm run build:tasks && npm run build:webpack:main && run-p watch:webpack:renderer watch:electron'
10 silly lifecycle ]
11 silly lifecycle graviton@2.1.5~start: Returned: code: 1  signal: null
12 info lifecycle graviton@2.1.5~start: Failed to exec start script
13 verbose stack Error: graviton@2.1.5 start: `npm run build:tasks && npm run build:webpack:main && run-p watch:webpack:renderer watch:electron`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/usr/share/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack     at EventEmitter.emit (events.js:315:20)
13 verbose stack     at ChildProcess.<anonymous> (/usr/share/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:315:20)
13 verbose stack     at maybeClose (internal/child_process.js:1021:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
14 verbose pkgid graviton@2.1.5
15 verbose cwd /home/user/Coding/Graviton-App
16 verbose Linux 5.8.0-33-generic
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "start"
18 verbose node v12.18.2
19 verbose npm  v6.14.8
20 error code ELIFECYCLE
21 error errno 1
22 error graviton@2.1.5 start: `npm run build:tasks && npm run build:webpack:main && run-p watch:webpack:renderer watch:electron`
22 error Exit status 1
23 error Failed at the graviton@2.1.5 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

As stated in the Building Guide you should use NodeJS LTS which is currently v14.15.3. Update it and try again 👍🏻

midyh commented

Oops. Thought I was using LTS. Works perfectly now. Thanks!