Hello
I am trying to run docker on my local (windows 10) via Docker image according https://redash.io/help/open-source/dev-guide/docker page.
I am getting an error like below after I run “C:\redash> docker-compose up -d” comment
……

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! redash-client@9.0.0-alpha build: npm run clean && NODE_ENV=production webpack
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the redash-client@9.0.0-alpha build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-05-08T08_25_11_481Z-debug.log
ERROR: Service ‘server’ failed to build: The command ‘/bin/sh -c npm run build’ returned a non-zero code: 2

Thanks

What did you find in the logs?

I did not find the log file. I don’t know how can I find it.

I’m seeing the similar error with same build instructions (same dev environment has been successfully been used to build earlier Redash versions).

9 verbose lifecycle redash-client@9.0.0-alpha~build:viz: CWD: C:\LD_development\redash_spike\redash
10 silly lifecycle redash-client@9.0.0-alpha~build:viz: Args: [ ‘-c’, ‘(cd viz-lib && npm run build:babel)’ ]
11 silly lifecycle redash-client@9.0.0-alpha~build:viz: Returned: code: 1 signal: null
12 info lifecycle redash-client@9.0.0-alpha~build:viz: Failed to exec build:viz script
13 verbose stack Error: redash-client@9.0.0-alpha build:viz: (cd viz-lib && npm run build:babel)
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:210:5)
13 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:210:5)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
14 verbose pkgid redash-client@9.0.0-alpha
15 verbose cwd C:\LD_development\redash_spike\redash
16 verbose Windows_NT 10.0.18363
17 verbose argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “run” “build:viz”
18 verbose node v12.13.1
19 verbose npm v6.12.1
20 error code ELIFECYCLE
21 error errno 1
22 error redash-client@9.0.0-alpha build:viz: (cd viz-lib && npm run build:babel)
22 error Exit status 1
23 error Failed at the redash-client@9.0.0-alpha build:viz script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

Does your Babel dependency work normally?

1 Like

Thanks!

Looks like there was older Babel (6.x.x.) and the building was failing because of that. Now after upgrading to 7 it works ok and Redash UI can be compiled again.

1 Like

I am struggling to get Redash to run on my Windows 10 PC.

You seem to be the only person I can find who has got it running. Which method did you use? When using the dev guide for docker I run into multiple npm errors during run build which have to do with typescript as it were.

Did you have to tweak any files from the repo to get yours working? Your help would be greatly appreciated as I am stuck on this for a week now with no end in sight