help icon indicating copy to clipboard operation
help copied to clipboard

macOS: npm run compile:mac hangs

Open rajivshah3 opened this issue 9 years ago • 14 comments

  • Node.js Version: 8.4.0
  • OS: macOS High Sierra Beta
  • Scope (install, code, runtime, meta, other?): npm run compile:mac
  • Module (and version) (if relevant):

I'm probably doing something wrong, but when I try to run npm run compile:mac on a package, I assume it triggers electron-builder. The process starts, but seems to hang at "Building DMG". Is this a npm issue or electron builder issue?

rajivshah3 avatar Aug 24 '17 17:08 rajivshah3

https://github.com/nodejs/node/issues/15018

rajivshah3 avatar Aug 24 '17 17:08 rajivshah3

Here's the log it referenced as well:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'run',
1 verbose cli   'compile:mac' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'precompile:mac', 'compile:mac', 'postcompile:mac' ]
5 info lifecycle [email protected]~precompile:mac: [email protected]
6 info lifecycle [email protected]~compile:mac: [email protected]
7 verbose lifecycle [email protected]~compile:mac: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~compile:mac: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/rajiv/wallet/node_modules/.bin:/Users/rajiv/.rvm/gems/ruby-2.4.0/bin:/Users/rajiv/.rvm/gems/ruby-2.4.0@global/bin:/Users/rajiv/.rvm/rubies/ruby-2.4.0/bin:/Users/rajiv/.rbenv/shims:/Users/rajiv/anaconda2/bin:/usr/local/opt/qt/bin:/usr/local/opt/curl/bin:/usr/local/opt/openssl/bin:/usr/local/opt/openssl/bin:/usr/local/opt/openssl/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin:/usr/local/share/dotnet:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/rajiv/.rvm/bin
9 verbose lifecycle [email protected]~compile:mac: CWD: /Users/rajiv/wallet
10 silly lifecycle [email protected]~compile:mac: Args: [ '-c',
10 silly lifecycle   'export CSC_IDENTITY_AUTO_DISCOVERY=false && electron-builder --mac --x64' ]
11 silly lifecycle [email protected]~compile:mac: Returned: code: 130  signal: null
12 info lifecycle [email protected]~compile:mac: Failed to exec compile:mac script
13 verbose stack Error: [email protected] compile:mac: `export CSC_IDENTITY_AUTO_DISCOVERY=false && electron-builder --mac --x64`
13 verbose stack Exit status 130
13 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:289:16)
13 verbose stack     at emitTwo (events.js:125:13)
13 verbose stack     at EventEmitter.emit (events.js:213:7)
13 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
13 verbose stack     at emitTwo (events.js:125:13)
13 verbose stack     at ChildProcess.emit (events.js:213:7)
13 verbose stack     at maybeClose (internal/child_process.js:927:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
14 verbose pkgid [email protected]
15 verbose cwd /Users/rajiv/wallet
16 verbose Darwin 17.0.0
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "compile:mac"
18 verbose node v8.4.0
19 verbose npm  v5.3.0
20 error code ELIFECYCLE
21 error errno 130
22 error [email protected] compile:mac: `export CSC_IDENTITY_AUTO_DISCOVERY=false && electron-builder --mac --x64`
22 error Exit status 130
23 error Failed at the [email protected] compile:mac script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 130, true ]

rajivshah3 avatar Aug 24 '17 17:08 rajivshah3

Nothing to do with npm.

I suggest you report this as an Issue at iotaledger, and they can probably identify what error number 130 is for you, or can help you through the installation steps/scripts (and any pre-requisites) that may have/be failing.

shellberg avatar Aug 25 '17 13:08 shellberg

Ok, thanks

rajivshah3 avatar Aug 27 '17 19:08 rajivshah3

Ah it turns out that 130 is the code for SIGINT, this is when I cancelled the compiling because it took more than 30 min. I'll look into this with IOTA though

rajivshah3 avatar Aug 27 '17 19:08 rajivshah3

@rajivshah3 Did you get this working?

Knighton910 avatar Aug 31 '17 18:08 Knighton910

Unfortunately no. I was able to get compile:win and compile:lin working by reinstalling npm, node, and electron-builder and re downloading the source I was trying to compile, but compile:mac still seems to get stuck.

On Aug 31, 2017, at 2:49 PM, kelvin knighton [email protected] wrote:

@rajivshah3 https://github.com/rajivshah3 Did you get this working?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nodejs/help/issues/791#issuecomment-326387825, or mute the thread https://github.com/notifications/unsubscribe-auth/ASnYTCHIavy8Xg8OKVdm1yZcZQ0ceN9uks5sdwA4gaJpZM4PBrfW.

rajivshah3 avatar Aug 31 '17 18:08 rajivshah3

npm run compile:mac Try running npm run compile --mac Because i don't see it in electron docs to run npm run compile:mac I could be wrong, If I'm wrong show me a source where your getting this CLI command from. Other than that it really depends on how you installed these things as well. Did you take the homebrew approach to installments along with npm?

Knighton910 avatar Aug 31 '17 19:08 Knighton910

@lordKnighton : The instructions @rajivshah3 was following are totally consistent with trying to install and use the iotaledger walletapplication as they instruct, as I identified in my first response.

@rajivshah3 : Did you raise your issue with that project?

shellberg avatar Sep 01 '17 11:09 shellberg

I told them about it, they said that they didn't know why it was happening. It worked on someone else's Mac I believe

rajivshah3 avatar Sep 11 '17 02:09 rajivshah3

Hi, do you guys have any other suggestions or things I can try?

rajivshah3 avatar Oct 07 '17 18:10 rajivshah3

@rajivshah3 - is this still outstanding? were you able to get further on this?

gireeshpunathil avatar Mar 10 '18 13:03 gireeshpunathil

closing due to inactivity, please re-open if it is still outstanding.

gireeshpunathil avatar Mar 12 '18 07:03 gireeshpunathil

@gireeshpunathil hi, I think it fixed itself somehow. Thanks!

rajivshah3 avatar Mar 25 '18 18:03 rajivshah3