Skip to content

Install app deps always trigger rebuild #787

@0181532686cf4a31163be0bf3e6bb6732bf

Description

  • Version: 7.10.0
  • Target: Mac and Linux

Hello, I'm using electron-builder with native module (https://github.com/lyssdod/node-libtorrent). The module itself uses node-pre-gyp and has precompiled binaries. It installs flawlessly if I'm not using electron-builder directly (running npm install from app directory works). But if I do, it fails with

Error output:
module.js:457
    throw err;
    ^

Error: Cannot find module 'adm-zip'
    at Function.Module._resolveFilename (module.js:455:15)
    at Function.Module._load (module.js:403:25)
    at Module.require (module.js:483:17)
    at require (internal/module.js:20:19)

The fun fact is, this module (adm-zip) is specified in node-libtorrent-ngs devDependencies and is handled by regular npm install just fine.

So my questions are:

  1. Why electron-builder ignores default action of node-gyp-rebuild despite binaries are available?
  2. Is there a way to debug 'install-app-deps' step?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions