I followed instructions on the https://redash.io/help-onpremise/dev/docker.html.
And stuck with setup of webpack.
macbook-pro-3:redash kot$ npm start
redash-client@3.0.0 start /Users/kot/git/python/redash
webpack-dev-server
Project is running at http://localhost:8080/
webpack output is served from /
Content not from webpack is served from /Users/kot/git/python/redash/client/app
404s will fallback to /index.html
internal/child_process.js:319
throw errnoException(err, ‘spawn’);
^
Error: spawn EACCES
at exports._errnoException (util.js:1050:11)
at ChildProcess.spawn (internal/child_process.js:319:11)
at exports.spawn (child_process.js:378:9)
at Object.exports.execFile (child_process.js:143:15)
at Object.module.exports.fileCommand (/Users/kot/git/python/redash/node_modules/node-notifier/lib/utils.js:53:13)
at NotificationCenter.notify (/Users/kot/git/python/redash/node_modules/node-notifier/notifiers/notificationcenter.js:66:11)
at WebpackBuildNotifierPlugin.onCompilationDone (/Users/kot/git/python/redash/node_modules/webpack-build-notifier/index.js:152:18)
at Compiler.applyPlugins (/Users/kot/git/python/redash/node_modules/tapable/lib/Tapable.js:61:14)
at Watching._done (/Users/kot/git/python/redash/node_modules/webpack/lib/Compiler.js:98:16)
at /Users/kot/git/python/redash/node_modules/webpack/lib/Compiler.js:73:18
at Compiler.emitRecords (/Users/kot/git/python/redash/node_modules/webpack/lib/Compiler.js:367:37)
at /Users/kot/git/python/redash/node_modules/webpack/lib/Compiler.js:56:19
at /Users/kot/git/python/redash/node_modules/webpack/lib/Compiler.js:360:11
at next (/Users/kot/git/python/redash/node_modules/tapable/lib/Tapable.js:218:11)
at Compiler.compiler.plugin (/Users/kot/git/python/redash/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4)
at Compiler.applyPluginsAsyncSeries1 (/Users/kot/git/python/redash/node_modules/tapable/lib/Tapable.js:222:13)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! redash-client@3.0.0 start: webpack-dev-server
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the redash-client@3.0.0 start 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! /Users/kot/.npm/_logs/2017-09-15T20_04_18_219Z-debug.log`
2017-09-15T20_04_18_219Z-debug.log:
0 info it worked if it ends with ok 1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ] 2 info using npm@5.4.0 3 info using node@v7.9.0 4 verbose run-script [ 'prestart', 'start', 'poststart' ] 5 info lifecycle redash-client@3.0.0~prestart: redash-client@3.0.0 6 info lifecycle redash-client@3.0.0~start: redash-client@3.0.0 7 verbose lifecycle redash-client@3.0.0~start: unsafe-perm in lifecycle true 8 verbose lifecycle redash-client@3.0.0~start: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/kot/git/python/redash/node_modules/.bin:/opt/local/bin:/usr/local/sbin/:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS 9 verbose lifecycle redash-client@3.0.0~start: CWD: /Users/kot/git/python/redash 10 silly lifecycle redash-client@3.0.0~start: Args: [ '-c', 'webpack-dev-server' ] 11 silly lifecycle redash-client@3.0.0~start: Returned: code: 1 signal: null 12 info lifecycle redash-client@3.0.0~start: Failed to exec start script 13 verbose stack Error: redash-client@3.0.0 start:
webpack-dev-server13 verbose stack Exit status 1 13 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:280:16) 13 verbose stack at emitTwo (events.js:106:13) 13 verbose stack at EventEmitter.emit (events.js:194:7) 13 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 13 verbose stack at emitTwo (events.js:106:13) 13 verbose stack at ChildProcess.emit (events.js:194:7) 13 verbose stack at maybeClose (internal/child_process.js:899:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) 14 verbose pkgid redash-client@3.0.0 15 verbose cwd /Users/kot/git/python/redash 16 verbose Darwin 16.7.0 17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" 18 verbose node v7.9.0 19 verbose npm v5.4.0 20 error code ELIFECYCLE 21 error errno 1 22 error redash-client@3.0.0 start:
webpack-dev-server22 error Exit status 1 23 error Failed at the redash-client@3.0.0 start script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ]
I tried to remove node_modules && reinstall with npm install. It didn’t help
Also I tried to execute webpack-dev-server directly:
kot$ webpack-dev-server
Invalid configuration object. webpack-dev-server has been initialised using a configuration object that does not match the API schema.
- configuration has an unknown property ‘error’. These properties are valid:
object { hot?, hotOnly?, lazy?, bonjour?, host?, allowedHosts?, filename?, publicPath?, port?, socket?, watchOptions?, headers?, clientLogLevel?, overlay?, progress?, key?, cert?, ca?, pfx?, pfxPassphrase?, requestCert?, inline?, disableHostCheck?, public?, https?, contentBase?, watchContentBase?, open?, useLocalIp?, openPage?, features?, compress?, proxy?, historyApiFallback?, staticOptions?, setup?, stats?, reporter?, noInfo?, quiet?, serverSideRender?, index?, log?, warn? }