[DAEMON-3] node-ios-device: Re-run node-pre-gyp if binding doesn't exist
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | High |
Status | Closed |
Resolution | Done |
Resolution Date | 2016-08-04T02:49:46.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | ioslib |
Labels | n/a |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2016-05-05T07:59:36.000+0000 |
Updated | 2016-10-21T22:22:36.000+0000 |
Description
node-ios-device v0.9.0 uses node-pre-gyp. When it is npm installed, node-pre-gyp downloads the pre-compiled binary. However, if the system Node.js version is changed, then node-pre-gyp needs to be re-run. In order for this to work, node-pre-gyp must be executed synchronously.
Fixed thanks to
node-pre-gyp-init