-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exit the process on successful download case #45
Conversation
Sounds like there's something keeping the node process open. If so, doing wtfnode can help to find open handles. |
Here is what I get with wtfnode:
Note sure what's wrong or if npm is to be blamed here. Note that I'm running on an ARM64 platform running Ubuntu 16.04 and here are is my setup in case it's relevant:
|
Same thing after upgrading to npm 5.5.1.
/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js
|
Might be more telling to use the programmatic API of Try adding it to #!/usr/bin/env node
var wtf = require('wtfnode')
// ..
log.info('install', 'Successfully installed prebuilt binary!')
wtf.dump() |
Oh, could it be that your native module opens a handle / starts a timer / etc? Because |
Did not get more info, actually less:
You're right about the test step, there are a lot of things going on when you require the "artik-sdk" module. Is there a way to bypass this verification step? Otherwise I'll look at ways to fix it in the addon. |
That makes sense if the native module is the culprit.
|
Nope, not at the moment. This sounds like a bug in the native node module, no module should lock if only required. |
Makes sense, I'll go ahead and fix the native module. Thanks a lot guys for the quick support, closing the PR now. |
When I use the following install command in package.json as recommended in the documentation:
The prebuilt binary is properly downloaded, installed, but after that the installation process never returns. Is that expected? If not, would this patch be an acceptable fix?