Skip to content

electron-builder install-app-deps failed to rebuild re2 #8518

Closed
@AndrewEQ

Description

@AndrewEQ
  • Electron-Builder Version: ^25.0.5
  • Node Version: v22.1.0
  • Electron Version: ^32.1.2
  • Electron Type (current, beta, nightly): current
  • Target: Mac: arm64

After I run 'npm I', the postinstall fails:

failedTask=installAppDeps stackTrace=Error: node-gyp failed to rebuild '/Users/.../node_modules/@metascraper/helpers/node_modules/re2'

This is the library: https://metascraper.js.org

If I remove the "postinstall": "electron-builder install-app-deps", from my package.json scripts I don't get the error ha.

What must I do to get past the error besides not running the postinstall?

Here's a bit more from the top of the error trace:

 • executing @electron/rebuild  electronVersion=32.1.2 arch=arm64 buildFromSource=false appDir=./
  • installing native dependencies  arch=arm64
  • preparing       moduleName=re2 arch=arm64
  ⨯ (node:13115) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
  CXX(target) Release/obj.target/re2/lib/addon.o
In file included from ../lib/addon.cc:1:
In file included from ../lib/./wrapped_re2.h:4:
../../../../../nan/nan.h:700:39: error: no member named 'IdleNotificationDeadline' in 'v8::Isolate'
  700 |     return v8::Isolate::GetCurrent()->IdleNotificationDeadline(
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~  ^
../../../../../nan/nan.h:2560:8: error: no member named 'SetAccessor' in 'v8::ObjectTemplate'
 2560 |   tpl->SetAccessor(
      |   ~~~~~^
../../../../../nan/nan.h:2608:8: error: no member named 'SetAccessor' in 'v8::ObjectTemplate'
 2608 |   tpl->SetAccessor(
      |   ~~~~~^
../../../../../nan/nan.h:2654:15: error: no member named 'SetAccessor' in 'v8::Object'
 2654 |   return obj->SetAccessor(
      |          ~~~~~^
../../../../../nan/nan.h:2730:19: error: no matching constructor for initialization of 'v8::NamedPropertyHandlerConfiguration'
 2730 |   tpl->SetHandler(v8::NamedPropertyHandlerConfiguration(
      |                   ^
 2731 |       getter_, setter_, query_, deleter_, enumerator_, obj));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/aq/.electron-gyp/32.1.2/include/node/v8-template.h:772:12: note: candidate constructor not viable: no known conversion from 'imp::NativePropertyGetter' (aka 'void (*)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value> &)') to 'NamedPropertyGetterCallback' (aka 'Intercepted (*)(Local<Name>, const PropertyCallbackInfo<Value> &)') for 1st argument
  772 |   explicit NamedPropertyHandlerConfiguration(
      |            ^
  773 |       NamedPropertyGetterCallback getter,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/aq/.electron-gyp/32.1.2/include/node/v8-template.h:790:3: note: candidate constructor not viable: no known conversion from 'imp::NativePropertyGetter' (aka 'void (*)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value> &)') to 'NamedPropertyGetterCallback' (aka 'Intercepted (*)(Local<Name>, const PropertyCallbackInfo<Value> &)') for 1st argument
  790 |   NamedPropertyHandlerConfiguration(
      |   ^
  791 |       NamedPropertyGetterCallback getter,          //

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions