I'm able to run the app successfully via npm start but running npm run dist to build a .dmg fails.
OS: OS X 10.12.4
node.js version: 6.10.1
npm version: 3.10.10
Steps to reproduce:
npm installnpm run distnpm-debug.log:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'dist' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'predist', 'dist', 'postdist' ]
5 info lifecycle [email protected]~predist: [email protected]
6 silly lifecycle [email protected]~predist: no script for predist, continuing
7 info lifecycle [email protected]~dist: [email protected]
8 verbose lifecycle [email protected]~dist: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]~dist: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/davidson/dev/projects/zulip-electron/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
10 verbose lifecycle [email protected]~dist: CWD: /Users/davidson/dev/projects/zulip-electron
11 silly lifecycle [email protected]~dist: Args: [ '-c', 'build' ]
12 silly lifecycle [email protected]~dist: Returned: code: 255 signal: null
13 info lifecycle [email protected]~dist: Failed to exec dist script
14 verbose stack Error: [email protected] dist: build
14 verbose stack Exit status 255
14 verbose stack at EventEmitter.
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess.
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:886:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid [email protected]
16 verbose cwd /Users/davidson/dev/projects/zulip-electron
17 error Darwin 16.5.0
18 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "dist"
19 error node v6.10.1
20 error npm v3.10.10
21 error code ELIFECYCLE
22 error [email protected] dist: build
22 error Exit status 255
23 error Failed at the [email protected] dist script 'build'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the zulip package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error build
23 error You can get information on how to open an issue for this project with:
23 error npm bugs zulip
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls zulip
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
@syncopated thanks for opening this issue :)
I have pushed a fix, could you please try again on master?
@akashnimare your fix worked. I ran npm run dist and it built the .dmg successfully. Thanks!
Yayyyy 馃帀
Most helpful comment
@syncopated thanks for opening this issue :)
I have pushed a fix, could you please try again on master?