Skip to content
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

Error: Could not locate the bindings file #8

Open
jojomatik opened this issue Dec 19, 2022 · 8 comments
Open

Error: Could not locate the bindings file #8

jojomatik opened this issue Dec 19, 2022 · 8 comments

Comments

@jojomatik
Copy link

jojomatik commented Dec 19, 2022

Following the docs of Signal-Desktop I receive the following error for better-sqlite as soon as I run yarn start:

Unhandled Promise Rejection

Error: Error: Could not locate the bindings file. Tried:
 → [REDACTED]\node_modules\@signalapp\better-sqlite3\build\better_sqlite3.node
 → [REDACTED]\node_modules\@signalapp\better-sqlite3\build\Debug\better_sqlite3.node
 → [REDACTED]\node_modules\@signalapp\better-sqlite3\build\Release\better_sqlite3.node
 → [REDACTED]\node_modules\@signalapp\better-sqlite3\out\Debug\better_sqlite3.node
 → [REDACTED]\node_modules\@signalapp\better-sqlite3\Debug\better_sqlite3.node
 → [REDACTED]\node_modules\@signalapp\better-sqlite3\out\Release\better_sqlite3.node
 → [REDACTED]\node_modules\@signalapp\better-sqlite3\Release\better_sqlite3.node
 → [REDACTED]\node_modules\@signalapp\better-sqlite3\build\default\better_sqlite3.node
 → [REDACTED]\node_modules\@signalapp\better-sqlite3\compiled\16.16.0\win32\x64\better_sqlite3.node
 → [REDACTED]\node_modules\@signalapp\better-sqlite3\addon-build\release\install-root\better_sqlite3.node
 → [REDACTED]\node_modules\@signalapp\better-sqlite3\addon-build\debug\install-root\better_sqlite3.node
 → [REDACTED]\node_modules\@signalapp\better-sqlite3\addon-build\default\install-root\better_sqlite3.node
 → [REDACTED]\node_modules\@signalapp\better-sqlite3\lib\binding\node-v109-win32-x64\better_sqlite3.node
    at bindings ([REDACTED]\node_modules\bindings\bindings.js:126:9)
    at new Database ([REDACTED]\node_modules\@signalapp\better-sqlite3\lib\database.js:48:64)
    at openAndMigrateDatabase ([REDACTED]\ts\sql\Server.js:329:8)
    at openAndSetUpSQLCipher ([REDACTED]\ts\sql\Server.js:347:14)
    at Object.initialize ([REDACTED]\ts\sql\Server.js:378:10)
    at MessagePort.<anonymous> ([REDACTED]\ts\sql\mainWorker.js:69:35)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:643:20)
    at exports.emitMessage (node:internal/per_context/messageport:23:28)
    at Worker.<anonymous> ([REDACTED]\ts\sql\main.js:56:26)
    at Worker.emit (node:events:527:28)
    at MessagePort.<anonymous> (node:internal/worker:233:53)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:643:20)
    at exports.emitMessage (node:internal/per_context/messageport:23:28)

The bindings file is actually missing. As I dived done deeper into the topic I realised that it shortly exists during the install process (yarn install --frozen-lockfile) as it is built on install. Same can be acchieved running npm run build-release in /node_modules/@signalapp/better-sqlite3. Bindings file located at /node_modules/@signalapp/better-sqlite3/build/Release/better_sqlite3.node

Shortly after however it is tried to rebuild the package using the electron builder which does not succeed apparently (no bindings file). I don't receive an error however.

Running yarn start with the manually built bindings file yields another error:

Unhandled Promise Rejection

Error: Error: The module '\\?\[REDACTED]\node_modules\@signalapp\better-sqlite3\build\Release\better_sqlite3.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 111. This version of Node.js requires
NODE_MODULE_VERSION 109. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at process.func [as dlopen] (node:electron/js2c/asar_bundle:5:1810)
    at Module._extensions..node (node:internal/modules/cjs/loader:1205:18)
    at Object.func [as .node] (node:electron/js2c/asar_bundle:5:1810)
    at Module.load (node:internal/modules/cjs/loader:988:32)
    at Module._load (node:internal/modules/cjs/loader:829:12)
    at c._load (node:electron/js2c/asar_bundle:5:13339)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at bindings ([REDACTED]\node_modules\bindings\bindings.js:112:48)
    at new Database ([REDACTED]\node_modules\@signalapp\better-sqlite3\lib\database.js:48:64)
    at Worker.<anonymous> ([REDACTED]\ts\sql\main.js:56:26)
    at Worker.emit (node:events:527:28)
    at MessagePort.<anonymous> (node:internal/worker:233:53)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:643:20)
    at exports.emitMessage (node:internal/per_context/messageport:23:28)

NODE_MODULE_VERSION 109 is an electron specific version. I don't believe I can fake that version without electron builder.

I've tried with multiple combinations: Node 16.16.0 as required, Node 19.x, better-sqlite3 v8.0.2, v8.0.3, v8.0.4 all of which on Windows 10.

@jojomatik
Copy link
Author

jojomatik commented Dec 19, 2022

If I run electron-builder install-app-deps manually I receive the following error message that might otherwise be silenced:

  ⨯ cannot execute  cause=exit status 1
                    errorOut=npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
    npm ERR! code 1
    npm ERR! path C:\path\to\code\signalapp\Signal-Desktop\node_modules\@signalapp\better-sqlite3
    npm ERR! command failed
    npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c npm run download && npm run build-release
    npm ERR! > @signalapp/better-sqlite3@8.0.3 download
    npm ERR! > node ./deps/download.js
    npm ERR!
    npm ERR! local build artifact is up-to-date
    npm ERR!
    npm ERR! > @signalapp/better-sqlite3@8.0.3 build-release
    npm ERR! > node-gyp rebuild --release
    npm ERR!
    npm ERR! Die Projekte in dieser Projektmappe werden nacheinander erstellt. Um eine parallele Erstellung zu erm�glichen, m�ssen Sie den Schalter "/m" hinzuf�gen.
    npm ERR!   extract_sqlite3
    npm ERR!   Copying C:\path\to\code\signalapp\Signal-Desktop\node_modules\@signalapp\better-sqlite3\build\Release\/obj/global_intermediate/sqlite3/OpenSSL-win-x64/libssl.lib to C:\path\to\code\signalapp\Signal-Desktop\node_modules\@signalapp\better-sqlite3\build\Release\
    npm ERR!           1 Datei(en) kopiert.
    npm ERR!   Copying C:\path\to\code\signalapp\Signal-Desktop\node_modules\@signalapp\better-sqlite3\build\Release\/obj/global_intermediate/sqlite3/OpenSSL-win-x64/libcrypto.lib to C:\path\to\code\signalapp\Signal-Desktop\node_modules\@signalapp\better-sqlite3\build\Release\
    npm ERR!           1 Datei(en) kopiert.
    npm ERR!   Copying C:\path\to\code\signalapp\Signal-Desktop\node_modules\@signalapp\better-sqlite3\build\Release\/obj/global_intermediate/sqlite3/OpenSSL-win-x64/ossl_static.pdb to C:\path\to\code\signalapp\Signal-Desktop\node_modules\@signalapp\better-sqlite3\build\Release\
    npm ERR!   Das System kann die angegebene Datei nicht finden.
    npm ERR!   sqlite3.c
    npm ERR!   win_delay_load_hook.cc
    npm ERR!   sqlite3.vcxproj -> C:\path\to\code\signalapp\Signal-Desktop\node_modules\@signalapp\better-sqlite3\build\Release\\sqlite3.lib
    npm ERR!   better_sqlite3.cpp
    npm ERR! c:\users\User\.electron-gyp\21.3.3\include\node\v8-callbacks.h(331): error C2062: "int"-Typ unerwartet [C:\path\to\code\signalapp\Signal-Desktop\node_modules\@signalapp\better-sqlite3\build\better_sqlite3.vcxproj]
    npm ERR! c:\users\User\.electron-gyp\21.3.3\include\node\v8-isolate.h(1531): error C2061: Syntaxfehler: Bezeichner "WasmDynamicTieringEnabledCallback" [C:\path\to\code\signalapp\Signal-Desktop\node_modules\@signalapp\better-sqlite3\build\better_sqlite3.vcxproj]
    npm ERR! c:\users\User\.electron-gyp\21.3.3\include\node\v8-wasm.h(192): warning C4996: 'v8::WasmStreaming::Client': Use SetMoreFunctionsCanBeSerializedCallback [C:\path\to\code\signalapp\Signal-Desktop\node_modules\@signalapp\better-sqlite3\build\better_sqlite3.vcxproj]
    npm ERR!   c:\users\User\.electron-gyp\21.3.3\include\node\v8-wasm.h(137): note: Siehe Deklaration von "v8::WasmStreaming::Client"
    npm ERR! C:\path\to\code\signalapp\signal-desktop\node_modules\@signalapp\better-sqlite3\build\src\util\macros.lzz(31): warning C4996: 'v8::CopyablePersistentTraits<T>': Use v8::Global instead [C:\path\to\code\signalapp\Signal-Desktop\node_modules\@signalapp\better-sqlite3\build\better_sqlite3.vcxproj]
    npm ERR! C:\path\to\code\signalapp\signal-desktop\node_modules\@signalapp\better-sqlite3\build\src\objects\database.lzz(453): warning C4309: "static_cast": Verk�rzung eines konstanten Wertes [C:\path\to\code\signalapp\Signal-Desktop\node_modules\@signalapp\better-sqlite3\build\better_sqlite3.vcxproj]
    npm ERR!   test_extension.c
    npm ERR!   win_delay_load_hook.cc
    npm ERR!      Bibliothek "C:\path\to\code\signalapp\Signal-Desktop\node_modules\@signalapp\better-sqlite3\build\Release\test_extension.lib" und Objekt "C:\path\to\code\signalapp\Signal-Desktop\node_modules\@signalapp\better-sqlite3\build\Release\test_extension.exp" werden erstellt.
    npm ERR!   test_extension.vcxproj -> C:\path\to\code\signalapp\Signal-Desktop\node_modules\@signalapp\better-sqlite3\build\Release\\test_extension.node
    npm ERR! npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
    npm ERR! npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
    npm ERR! gyp info it worked if it ends with ok
    npm ERR! gyp info using node-gyp@9.0.0
    npm ERR! gyp info using node@16.16.0 | win32 | x64
    npm ERR! gyp info find Python using Python version 3.9.4 found at "C:\Users\User\AppData\Local\Programs\Python\Python39\python.exe"
    npm ERR! gyp info find VS using VS2017 (15.9.33027.88) found at:
    npm ERR! gyp info find VS "C:\path\to\Microsoft Visual Studio\2017\BuildTools"
    npm ERR! gyp info find VS run with --verbose for detailed information
    npm ERR! gyp info spawn C:\Users\User\AppData\Local\Programs\Python\Python39\python.exe
    npm ERR! gyp info spawn args [
    npm ERR! gyp info spawn args   'C:\\path\\to\\code\\signalapp\\Signal-Desktop\\node_modules\\node-gyp\\gyp\\gyp_main.py',
    npm ERR! gyp info spawn args   'binding.gyp',
    npm ERR! gyp info spawn args   '-f',
    npm ERR! gyp info spawn args   'msvs',
    npm ERR! gyp info spawn args   '-I',
    npm ERR! gyp info spawn args   'C:\\path\\to\\code\\signalapp\\Signal-Desktop\\node_modules\\@signalapp\\better-sqlite3\\build\\config.gypi',
    npm ERR! gyp info spawn args   '-I',
    npm ERR! gyp info spawn args   'C:\\path\\to\\code\\signalapp\\Signal-Desktop\\node_modules\\node-gyp\\addon.gypi',
    npm ERR! gyp info spawn args   '-I',
    npm ERR! gyp info spawn args   'C:\\Users\\User\\.electron-gyp\\21.3.3\\include\\node\\common.gypi',
    npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
    npm ERR! gyp info spawn args   '-Dvisibility=default',
    npm ERR! gyp info spawn args   '-Dnode_root_dir=C:\\Users\\User\\.electron-gyp\\21.3.3',
    npm ERR! gyp info spawn args   '-Dnode_gyp_dir=C:\\path\\to\\code\\signalapp\\Signal-Desktop\\node_modules\\node-gyp',
    npm ERR! gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\User\\\\.electron-gyp\\\\21.3.3\\\\<(target_arch)\\\\node.lib',
    npm ERR! gyp info spawn args   '-Dmodule_root_dir=C:\\path\\to\\code\\signalapp\\Signal-Desktop\\node_modules\\@signalapp\\better-sqlite3',
    npm ERR! gyp info spawn args   '-Dnode_engine=v8',
    npm ERR! gyp info spawn args   '--depth=.',
    npm ERR! gyp info spawn args   '--no-parallel',
    npm ERR! gyp info spawn args   '--generator-output',
    npm ERR! gyp info spawn args   'C:\\path\\to\\code\\signalapp\\Signal-Desktop\\node_modules\\@signalapp\\better-sqlite3\\build',
    npm ERR! gyp info spawn args   '-Goutput_dir=.'
    npm ERR! gyp info spawn args ]
    npm ERR! gyp info spawn C:\path\to\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe
    npm ERR! gyp info spawn args [
    npm ERR! gyp info spawn args   'build/binding.sln',
    npm ERR! gyp info spawn args   '/clp:Verbosity=minimal',
    npm ERR! gyp info spawn args   '/nologo',
    npm ERR! gyp info spawn args   '/p:Configuration=Release;Platform=x64'
    npm ERR! gyp info spawn args ]
    npm ERR! gyp ERR! build error
    npm ERR! gyp ERR! stack Error: `C:\path\to\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
    npm ERR! gyp ERR! stack     at ChildProcess.onExit (C:\path\to\code\signalapp\Signal-Desktop\node_modules\node-gyp\lib\build.js:194:23)
    npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:527:28)
    npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
    npm ERR! gyp ERR! System Windows_NT 10.0.19045
    npm ERR! gyp ERR! command "C:\\path\\to\\nodejs\\node.exe" "C:\\path\\to\\code\\signalapp\\Signal-Desktop\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--release"
    npm ERR! gyp ERR! cwd C:\path\to\code\signalapp\Signal-Desktop\node_modules\@signalapp\better-sqlite3
    npm ERR! gyp ERR! node -v v16.16.0
    npm ERR! gyp ERR! node-gyp -v v9.0.0
    npm ERR! gyp ERR! not ok

    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\User\AppData\Local\npm-cache\_logs\2022-12-19T21_53_47_218Z-debug-0.log

                    command=npm.cmd rebuild @signalapp/better-sqlite3@8.0.3 mac-screen-capture-permissions@2.0.0 websocket@1.0.28
                    workingDir=

So building with node seems to work on my machine, building with electron apparently not.

@indutny-signal
Copy link
Contributor

Sorry about this. Cold you try running:

NPM_CONFIG_LOGLEVEL=verbose yarn electron:install-app-deps

to see if it will print more diagnostic data?

Thanks!

@jojomatik
Copy link
Author

jojomatik commented Dec 20, 2022

Thanks for the quick reply :)

I ran cmd /V /C "set NPM_CONFIG_LOGLEVEL=verbose&& yarn electron:install-app-deps" which should be equivalent, but I don't see any error (other than the known unproblematic issue with mac-screen-capture-permissions):

yarn run v1.22.19
$ electron-builder install-app-deps
  • electron-builder  version=23.0.8
  • loaded configuration  file=package.json ("build" field)
  • rebuilding native dependencies  dependencies=@signalapp/better-sqlite3@8.0.3, mac-screen-capture-permissions@2.0.0, websocket@1.0.28 platform=win32 arch=x64
  • install prebuilt binary  name=mac-screen-capture-permissions version=2.0.0 platform=win32 arch=x64 napi=
  • build native dependency from sources  name=mac-screen-capture-permissions
                                          version=2.0.0
                                          platform=win32
                                          arch=x64
                                          napi=
                                          reason=prebuild-install failed with error (run with env DEBUG=electron-builder to get more information)
                                          error=C:\path\to\code\signalapp\Signal-Desktop\node_modules\node-abi\index.js:30
      throw new Error('Could not detect abi for version ' + target + ' and runtime ' + runtime + '.  Updating "node-abi" might help solve this issue if it is a new release of ' + runtime)
      ^

    Error: Could not detect abi for version 21.3.3 and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron
        at getAbi (C:\path\to\code\signalapp\Signal-Desktop\node_modules\node-abi\index.js:30:9)
        at module.exports (C:\path\to\code\signalapp\Signal-Desktop\node_modules\prebuild-install\rc.js:53:57)
        at Object.<anonymous> (C:\path\to\code\signalapp\Signal-Desktop\node_modules\prebuild-install\bin.js:8:25)
        at Module._compile (node:internal/modules/cjs/loader:1105:14)
        at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
        at Module.load (node:internal/modules/cjs/loader:981:32)
        at Function.Module._load (node:internal/modules/cjs/loader:822:12)
        at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
        at node:internal/main/run_main_module:17:47

  • rebuilding native dependency  name=@signalapp/better-sqlite3 version=8.0.3
  • rebuilding native dependency  name=websocket version=1.0.28
  • rebuilding native dependency  name=mac-screen-capture-permissions version=2.0.0
Done in 22.78s.

I still think the error somehow gets silenced as long as I run using the yarn wrapper (not sure if that is the correct name) and not directly using electron-builder install-app-deps. Could this be the case? (The bindings file is still missing.)

Edit: I just noticed the suggestion to use DEBUG=electron-builder which actually prints a lot of information, let me check if I find something interesting in there.

@jojomatik
Copy link
Author

This is weird, seems like another package websocket is failing (not sure why this error didn't surface earlier). But at least it shows that some errors are not shown using yarn electron:install-app-deps (sorry for the german log).

  • map async       taskCount=1
  • map async       taskCount=1
  • rebuilding native dependencies  dependencies=@signalapp/better-sqlite3@8.0.3, mac-screen-capture-permissions@2.0.0, websocket@1.0.28 platform=win32 arch=x64
  • map async       taskCount=3
  • install prebuilt binary  name=mac-screen-capture-permissions version=2.0.0 platform=win32 arch=x64 napi=
  • execute command  command='C:\path\to\nodejs\node.exe' 'C:\path\to\code\signalapp\Signal-Desktop\node_modules\prebuild-install\bin.js' --platform=win32 --arch=x64 --target=21.3.3 --runtime=electron --verbose --force
                     workingDirectory=C:\path\to\code\signalapp\Signal-Desktop\node_modules\mac-screen-capture-permissions
  • build native dependency from sources  name=mac-screen-capture-permissions
                                          version=2.0.0
                                          platform=win32
                                          arch=x64
                                          napi=
                                          reason=prebuild-install failed with error (run with env DEBUG=electron-builder to get more information)
                                          error=C:\path\to\code\signalapp\Signal-Desktop\node_modules\node-abi\index.js:30
      throw new Error('Could not detect abi for version ' + target + ' and runtime ' + runtime + '.  Updating "node-abi" might help solve this issue if it is a new release of ' + runtime)
      ^

    Error: Could not detect abi for version 21.3.3 and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron
        at getAbi (C:\path\to\code\signalapp\Signal-Desktop\node_modules\node-abi\index.js:30:9)
        at module.exports (C:\path\to\code\signalapp\Signal-Desktop\node_modules\prebuild-install\rc.js:53:57)
        at Object.<anonymous> (C:\path\to\code\signalapp\Signal-Desktop\node_modules\prebuild-install\bin.js:8:25)
        at Module._compile (node:internal/modules/cjs/loader:1105:14)
        at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
        at Module.load (node:internal/modules/cjs/loader:981:32)
        at Function.Module._load (node:internal/modules/cjs/loader:822:12)
        at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
        at node:internal/main/run_main_module:17:47

  • map async       taskCount=3
  • rebuilding native dependency  name=@signalapp/better-sqlite3 version=8.0.3
  • execute command  command='C:\path\to\nodejs\node.exe' 'C:\Users\User\AppData\Roaming\nvm\v16.16.0\node_modules\yarn\bin\yarn.js' run install
                     workingDirectory=C:\path\to\code\signalapp\Signal-Desktop\node_modules\@signalapp\better-sqlite3
  • rebuilding native dependency  name=websocket version=1.0.28
  • rebuilding native dependency  name=mac-screen-capture-permissions version=2.0.0
  • execute command  command='C:\path\to\nodejs\node.exe' 'C:\Users\User\AppData\Roaming\nvm\v16.16.0\node_modules\yarn\bin\yarn.js' run install
                     workingDirectory=C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket
  • execute command  command='C:\path\to\nodejs\node.exe' 'C:\Users\User\AppData\Roaming\nvm\v16.16.0\node_modules\yarn\bin\yarn.js' run install
                     workingDirectory=C:\path\to\code\signalapp\Signal-Desktop\node_modules\mac-screen-capture-permissions
  • command executed  executable=C:\path\to\nodejs\node.exe
$ prebuild-install || node install.js

                      errorOut=C:\path\to\code\signalapp\Signal-Desktop\node_modules\node-abi\index.js:30
      throw new Error('Could not detect abi for version ' + target + ' and runtime ' + runtime + '.  Updating "node-abi" might help solve this issue if it is a new release of ' + runtime)
      ^

    Error: Could not detect abi for version 21.3.3 and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron
        at getAbi (C:\path\to\code\signalapp\Signal-Desktop\node_modules\node-abi\index.js:30:9)
        at module.exports (C:\path\to\code\signalapp\Signal-Desktop\node_modules\prebuild-install\rc.js:53:57)
        at Object.<anonymous> (C:\path\to\code\signalapp\Signal-Desktop\node_modules\prebuild-install\bin.js:8:25)
        at Module._compile (node:internal/modules/cjs/loader:1105:14)
        at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
        at Module.load (node:internal/modules/cjs/loader:981:32)
        at Function.Module._load (node:internal/modules/cjs/loader:822:12)
        at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
        at node:internal/main/run_main_module:17:47

  • command executed  executable=C:\path\to\nodejs\node.exe
$ (node-gyp rebuild 2> builderror.log) || (exit 0)

    C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket>if not defined npm_config_node_gyp (node "C:\path\to\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild )
    Die Projekte in dieser Projektmappe werden nacheinander erstellt. Um eine parallele Erstellung zu erm�glichen, m�ssen Sie den Schalter "/m" hinzuf�gen.
      bufferutil.cc
    c:\users\User\.electron-gyp\21.3.3\include\node\v8-callbacks.h(331): error C2062: "int"-Typ unerwartet [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
    c:\users\User\.electron-gyp\21.3.3\include\node\v8-isolate.h(1531): error C2061: Syntaxfehler: Bezeichner "WasmDynamicTieringEnabledCallback" [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
    c:\users\User\.electron-gyp\21.3.3\include\node\v8-wasm.h(192): warning C4996: 'v8::WasmStreaming::Client': Use SetMoreFunctionsCanBeSerializedCallback [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
      c:\users\User\.electron-gyp\21.3.3\include\node\v8-wasm.h(137): note: Siehe Deklaration von "v8::WasmStreaming::Client"
    C:\path\to\code\signalapp\signal-desktop\node_modules\nan\nan_callbacks.h(55): error C2039: "AccessorSignature": Ist kein Element von "v8" [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
      c:\users\User\.electron-gyp\21.3.3\include\node\v8.h(71): note: Siehe Deklaration von "v8"
    C:\path\to\code\signalapp\signal-desktop\node_modules\nan\nan_callbacks.h(55): error C2065: "AccessorSignature": nichtdeklarierter Bezeichner [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
    C:\path\to\code\signalapp\signal-desktop\node_modules\nan\nan_callbacks.h(55): error C2923: "v8::Local": "AccessorSignature" ist kein g�ltiges Vorlage-Typargument f�r den T-Parameter. [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
    C:\path\to\code\signalapp\signal-desktop\node_modules\nan\nan_callbacks.h(55): error C2641: Vorlagenargument f�r "v8::Local" kann nicht abgeleitet werden. [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
    C:\path\to\code\signalapp\signal-desktop\node_modules\nan\nan.h(2510): error C2955: "v8::Local" : F�r die Verwendung von Klasse Vorlage ist eine Vorlage-Argumentliste erforderlich [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
      c:\users\User\.electron-gyp\21.3.3\include\node\v8-local-handle.h(155): note: Siehe Deklaration von "v8::Local"
    C:\path\to\code\signalapp\signal-desktop\node_modules\nan\nan.h(2510): error C2672: "v8::Local": keine �bereinstimmende �berladene Funktion gefunden [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
    C:\path\to\code\signalapp\signal-desktop\node_modules\nan\nan.h(2510): error C2783: "v8::Local<T> v8::Local(void)": Vorlage-Argument f�r "T" konnte nicht hergeleitet werden. [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
      c:\users\User\.electron-gyp\21.3.3\include\node\v8-local-handle.h(157): note: Siehe Deklaration von "v8::Local"
    C:\path\to\code\signalapp\signal-desktop\node_modules\nan\nan.h(2510): error C2780: "v8::Local<T> v8::Local(v8::Local<S>)": Erwartet 1 Argumente - 0 unterst�tzt [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
      c:\users\User\.electron-gyp\21.3.3\include\node\v8-local-handle.h(159): note: Siehe Deklaration von "v8::Local"
    C:\path\to\code\signalapp\signal-desktop\node_modules\nan\nan.h(2510): error C2780: "v8::Local<T> v8::Local(T *)": Erwartet 1 Argumente - 0 unterst�tzt [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
      c:\users\User\.electron-gyp\21.3.3\include\node\v8-local-handle.h(317): note: Siehe Deklaration von "v8::Local"
    C:\path\to\code\signalapp\signal-desktop\node_modules\nan\nan.h(2510): error C2641: Vorlagenargument f�r "v8::Local" kann nicht abgeleitet werden. [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
    C:\path\to\code\signalapp\signal-desktop\node_modules\nan\nan.h(2510): error C2512: "v8::Local": Kein geeigneter Standardkonstruktor verf�gbar [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
      C:\path\to\code\signalapp\signal-desktop\node_modules\nan\nan.h(2510): note: Quelltyp konnte von keinem Konstruktor angenommen werden, oder die �berladungsaufl�sung des Konstruktors ist mehrdeutig
    C:\path\to\code\signalapp\signal-desktop\node_modules\nan\nan.h(2536): error C2664: "void v8::ObjectTemplate::SetAccessor(v8::Local<v8::Name>,v8::AccessorNameGetterCallback,v8::AccessorNameSetterCallback,v8::Local<v8::Value>,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)" : Konvertierung von Argument 2 von "Nan::imp::NativeGetter" in "v8::AccessorGetterCallback" nicht m�glich [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
      C:\path\to\code\signalapp\signal-desktop\node_modules\nan\nan.h(2543): note: Diese Konvertierung erfordert einen reinterpret_cast-Operator oder eine Typumwandlung im C- oder Funktionsformat
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\bufferutil.cc(26): error C2039: "Handle": Ist kein Element von "v8" [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
      c:\users\User\.electron-gyp\21.3.3\include\node\v8.h(71): note: Siehe Deklaration von "v8"
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\bufferutil.cc(26): error C2061: Syntaxfehler: Bezeichner "Handle" [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\bufferutil.cc(34): error C2065: "target": nichtdeklarierter Bezeichner [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\bufferutil.cc(34): error C2660: "v8::FunctionTemplate::GetFunction": Funktion akzeptiert keine 0 Argumente [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
      c:\users\User\.electron-gyp\21.3.3\include\node\v8-template.h(495): note: Siehe Deklaration von "v8::FunctionTemplate::GetFunction"
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\bufferutil.cc(50): error C2660: "v8::Value::ToObject": Funktion akzeptiert keine 0 Argumente [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
      c:\users\User\.electron-gyp\21.3.3\include\node\v8-value.h(372): note: Siehe Deklaration von "v8::Value::ToObject"
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\bufferutil.cc(57): error C2661: "v8::Object::Get": Keine �berladene Funktion akzeptiert 1 Argumente [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\bufferutil.cc(68): error C2660: "v8::Value::ToObject": Funktion akzeptiert keine 0 Argumente [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
      c:\users\User\.electron-gyp\21.3.3\include\node\v8-value.h(372): note: Siehe Deklaration von "v8::Value::ToObject"
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\bufferutil.cc(70): error C2660: "v8::Value::ToObject": Funktion akzeptiert keine 0 Argumente [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
      c:\users\User\.electron-gyp\21.3.3\include\node\v8-value.h(372): note: Siehe Deklaration von "v8::Value::ToObject"
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\bufferutil.cc(89): error C2660: "v8::Value::ToObject": Funktion akzeptiert keine 0 Argumente [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
      c:\users\User\.electron-gyp\21.3.3\include\node\v8-value.h(372): note: Siehe Deklaration von "v8::Value::ToObject"
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\bufferutil.cc(90): error C2660: "v8::Value::ToObject": Funktion akzeptiert keine 0 Argumente [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
      c:\users\User\.electron-gyp\21.3.3\include\node\v8-value.h(372): note: Siehe Deklaration von "v8::Value::ToObject"
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\bufferutil.cc(92): error C2660: "v8::Value::ToObject": Funktion akzeptiert keine 0 Argumente [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
      c:\users\User\.electron-gyp\21.3.3\include\node\v8-value.h(372): note: Siehe Deklaration von "v8::Value::ToObject"
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\bufferutil.cc(93): error C2660: "v8::Value::Int32Value": Funktion akzeptiert keine 0 Argumente [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
      c:\users\User\.electron-gyp\21.3.3\include\node\v8-value.h(419): note: Siehe Deklaration von "v8::Value::Int32Value"
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\bufferutil.cc(94): error C2660: "v8::Value::Int32Value": Funktion akzeptiert keine 0 Argumente [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
      c:\users\User\.electron-gyp\21.3.3\include\node\v8-value.h(419): note: Siehe Deklaration von "v8::Value::Int32Value"
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\bufferutil.cc(115): error C2065: "Handle": nichtdeklarierter Bezeichner [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\bufferutil.cc(115): error C2275: "v8::Object": Ung�ltige Verwendung dieses Typs als Ausdruck [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
      c:\users\User\.electron-gyp\21.3.3\include\node\v8-value-serializer.h(21): note: Siehe Deklaration von "v8::Object"
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\bufferutil.cc(115): error C2065: "target": nichtdeklarierter Bezeichner [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\bufferutil.cc(115): error C2182: "init": Unzul�ssige Verwendung des Typs "void" [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\bufferutil.cc(116): error C2448: "init": Funktionsstil-Initialisierung scheint eine Funktionsdefinition zu sein [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\bufferutil.cc(121): warning C4312: "Typumwandlung": Konvertierung von "int" in gr��eren Typ "node::addon_register_func" [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\bufferutil.vcxproj]
      validation.cc
    c:\users\User\.electron-gyp\21.3.3\include\node\v8-callbacks.h(331): error C2062: "int"-Typ unerwartet [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\validation.vcxproj]
    c:\users\User\.electron-gyp\21.3.3\include\node\v8-isolate.h(1531): error C2061: Syntaxfehler: Bezeichner "WasmDynamicTieringEnabledCallback" [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\validation.vcxproj]
    c:\users\User\.electron-gyp\21.3.3\include\node\v8-wasm.h(192): warning C4996: 'v8::WasmStreaming::Client': Use SetMoreFunctionsCanBeSerializedCallback [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\validation.vcxproj]
      c:\users\User\.electron-gyp\21.3.3\include\node\v8-wasm.h(137): note: Siehe Deklaration von "v8::WasmStreaming::Client"
    C:\path\to\code\signalapp\signal-desktop\node_modules\nan\nan_callbacks.h(55): error C2039: "AccessorSignature": Ist kein Element von "v8" [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\validation.vcxproj]
      c:\users\User\.electron-gyp\21.3.3\include\node\v8.h(71): note: Siehe Deklaration von "v8"
    C:\path\to\code\signalapp\signal-desktop\node_modules\nan\nan_callbacks.h(55): error C2065: "AccessorSignature": nichtdeklarierter Bezeichner [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\validation.vcxproj]
    C:\path\to\code\signalapp\signal-desktop\node_modules\nan\nan_callbacks.h(55): error C2923: "v8::Local": "AccessorSignature" ist kein g�ltiges Vorlage-Typargument f�r den T-Parameter. [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\validation.vcxproj]
    C:\path\to\code\signalapp\signal-desktop\node_modules\nan\nan_callbacks.h(55): error C2641: Vorlagenargument f�r "v8::Local" kann nicht abgeleitet werden. [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\validation.vcxproj]
    C:\path\to\code\signalapp\signal-desktop\node_modules\nan\nan.h(2510): error C2955: "v8::Local" : F�r die Verwendung von Klasse Vorlage ist eine Vorlage-Argumentliste erforderlich [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\validation.vcxproj]
      c:\users\User\.electron-gyp\21.3.3\include\node\v8-local-handle.h(155): note: Siehe Deklaration von "v8::Local"
    C:\path\to\code\signalapp\signal-desktop\node_modules\nan\nan.h(2510): error C2672: "v8::Local": keine �bereinstimmende �berladene Funktion gefunden [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\validation.vcxproj]
    C:\path\to\code\signalapp\signal-desktop\node_modules\nan\nan.h(2510): error C2783: "v8::Local<T> v8::Local(void)": Vorlage-Argument f�r "T" konnte nicht hergeleitet werden. [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\validation.vcxproj]
      c:\users\User\.electron-gyp\21.3.3\include\node\v8-local-handle.h(157): note: Siehe Deklaration von "v8::Local"
    C:\path\to\code\signalapp\signal-desktop\node_modules\nan\nan.h(2510): error C2780: "v8::Local<T> v8::Local(v8::Local<S>)": Erwartet 1 Argumente - 0 unterst�tzt [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\validation.vcxproj]
      c:\users\User\.electron-gyp\21.3.3\include\node\v8-local-handle.h(159): note: Siehe Deklaration von "v8::Local"
    C:\path\to\code\signalapp\signal-desktop\node_modules\nan\nan.h(2510): error C2780: "v8::Local<T> v8::Local(T *)": Erwartet 1 Argumente - 0 unterst�tzt [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\validation.vcxproj]
      c:\users\User\.electron-gyp\21.3.3\include\node\v8-local-handle.h(317): note: Siehe Deklaration von "v8::Local"
    C:\path\to\code\signalapp\signal-desktop\node_modules\nan\nan.h(2510): error C2641: Vorlagenargument f�r "v8::Local" kann nicht abgeleitet werden. [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\validation.vcxproj]
    C:\path\to\code\signalapp\signal-desktop\node_modules\nan\nan.h(2510): error C2512: "v8::Local": Kein geeigneter Standardkonstruktor verf�gbar [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\validation.vcxproj]
      C:\path\to\code\signalapp\signal-desktop\node_modules\nan\nan.h(2510): note: Quelltyp konnte von keinem Konstruktor angenommen werden, oder die �berladungsaufl�sung des Konstruktors ist mehrdeutig
    C:\path\to\code\signalapp\signal-desktop\node_modules\nan\nan.h(2536): error C2664: "void v8::ObjectTemplate::SetAccessor(v8::Local<v8::Name>,v8::AccessorNameGetterCallback,v8::AccessorNameSetterCallback,v8::Local<v8::Value>,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)" : Konvertierung von Argument 2 von "Nan::imp::NativeGetter" in "v8::AccessorGetterCallback" nicht m�glich [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\validation.vcxproj]
      C:\path\to\code\signalapp\signal-desktop\node_modules\nan\nan.h(2543): note: Diese Konvertierung erfordert einen reinterpret_cast-Operator oder eine Typumwandlung im C- oder Funktionsformat
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\validation.cc(108): error C2039: "Handle": Ist kein Element von "v8" [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\validation.vcxproj]
      c:\users\User\.electron-gyp\21.3.3\include\node\v8.h(71): note: Siehe Deklaration von "v8"
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\validation.cc(108): error C2061: Syntaxfehler: Bezeichner "Handle" [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\validation.vcxproj]
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\validation.cc(114): error C2065: "target": nichtdeklarierter Bezeichner [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\validation.vcxproj]
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\validation.cc(114): error C2660: "v8::FunctionTemplate::GetFunction": Funktion akzeptiert keine 0 Argumente [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\validation.vcxproj]
      c:\users\User\.electron-gyp\21.3.3\include\node\v8-template.h(495): note: Siehe Deklaration von "v8::FunctionTemplate::GetFunction"
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\validation.cc(133): error C2660: "v8::Value::ToObject": Funktion akzeptiert keine 0 Argumente [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\validation.vcxproj]
      c:\users\User\.electron-gyp\21.3.3\include\node\v8-value.h(372): note: Siehe Deklaration von "v8::Value::ToObject"
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\validation.cc(142): error C2065: "Handle": nichtdeklarierter Bezeichner [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\validation.vcxproj]
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\validation.cc(142): error C2275: "v8::Object": Ung�ltige Verwendung dieses Typs als Ausdruck [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\validation.vcxproj]
      c:\users\User\.electron-gyp\21.3.3\include\node\v8-value-serializer.h(21): note: Siehe Deklaration von "v8::Object"
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\validation.cc(142): error C2065: "target": nichtdeklarierter Bezeichner [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\validation.vcxproj]
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\validation.cc(142): error C2182: "init": Unzul�ssige Verwendung des Typs "void" [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\validation.vcxproj]
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\validation.cc(143): error C2448: "init": Funktionsstil-Initialisierung scheint eine Funktionsdefinition zu sein [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\validation.vcxproj]
    C:\path\to\code\signalapp\signal-desktop\node_modules\websocket\src\validation.cc(148): warning C4312: "Typumwandlung": Konvertierung von "int" in gr��eren Typ "node::addon_register_func" [C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket\build\validation.vcxproj]

  • exited          command=app-builder.exe code=0 pid=35112
Done in 22.25s.

/node_modules/websocket/builderror.log:

gyp info it worked if it ends with ok
gyp info using node-gyp@9.0.0
gyp info using node@16.16.0 | win32 | x64
gyp info find Python using Python version 3.9.4 found at "C:\Users\User\AppData\Local\Programs\Python\Python39\python.exe"
gyp info find VS using VS2017 (15.9.33027.88) found at:
gyp info find VS "C:\path\to\Microsoft Visual Studio\2017\BuildTools"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\Users\User\AppData\Local\Programs\Python\Python39\python.exe
gyp info spawn args [
gyp info spawn args   'C:\\Users\\User\\AppData\\Roaming\\nvm\\v16.16.0\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'msvs',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\path\\to\\code\\signalapp\\Signal-Desktop\\node_modules\\websocket\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\User\\AppData\\Roaming\\nvm\\v16.16.0\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\User\\.electron-gyp\\21.3.3\\include\\node\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=C:\\Users\\User\\.electron-gyp\\21.3.3',
gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\User\\AppData\\Roaming\\nvm\\v16.16.0\\node_modules\\npm\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\User\\\\.electron-gyp\\\\21.3.3\\\\<(target_arch)\\\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\path\\to\\code\\signalapp\\Signal-Desktop\\node_modules\\websocket',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'C:\\path\\to\\code\\signalapp\\Signal-Desktop\\node_modules\\websocket\\build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn C:\path\to\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe
gyp info spawn args [
gyp info spawn args   'build/binding.sln',
gyp info spawn args   '/clp:Verbosity=minimal',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Release;Platform=x64'
gyp info spawn args ]
gyp ERR! build error
gyp ERR! stack Error: `C:\path\to\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\User\AppData\Roaming\nvm\v16.16.0\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (node:events:527:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Windows_NT 10.0.19045
gyp ERR! command "C:\\path\\to\\nodejs\\node.exe" "C:\\path\\to\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\path\to\code\signalapp\Signal-Desktop\node_modules\websocket
gyp ERR! node -v v16.16.0
gyp ERR! node-gyp -v v9.0.0
gyp ERR! not ok

I'll try to find information why that package fails, not sure if this is the reason @signalapp/better-sqlite3 fails. Maybe they have a common cause.

@indutny-signal
Copy link
Contributor

@jojomatik what msvs version do you have installed?

@jojomatik
Copy link
Author

jojomatik commented Dec 20, 2022

Above logs are from VS 2017 (MSBuild v15), same result with VS 2015 (MSBuild v14) and with VS 2022 (MSBuild v17.4) (I just upgraded to that).

@jojomatik
Copy link
Author

jojomatik commented Dec 20, 2022

Above logs are from VS 2017 (MSBuild v15), same result with VS 2015 (MSBuild v14) and with VS 2022 (MSBuild v17.4) (I just upgraded to that).

Well actually: At least better_sqlite3 builds correctly and yarn start opens a window, but it is stuck in the loading screen...

Console shows an error:

Unable to load preload script: C:\path\to\signalapp\Signal-Desktop\preload.bundle.js

node:electron/js2c/renderer_init:73 TypeError: Cannot read properties of undefined (reading 'ZERO')
    at ts/util/expirationTimer.ts (expirationTimer.ts:12:21)

and a few more related to that.

Not sure if they are related to the original issue though.

@lorailgun
Copy link

same issue

{"level":30,"time":"2023-05-17T09:36:39.616Z","msg":"MainSQL: migrateDatabase: Migration without cipher change failed"}
{"level":50,"time":"2023-05-17T09:36:39.616Z","msg":"MainSQL: Database startup error: Error: Could not locate the bindings file. Tried:\n → [REDACTED]/node_modules/@signalapp/better-sqlite3/build/better_sqlite3.node\n → [REDACTED]/node_modules/@signalapp/better-sqlite3/build/Debug/better_sqlite3.node\n → [REDACTED]/node_modules/@signalapp/better-sqlite3/build/Release/better_sqlite3.node\n → [REDACTED]/node_modules/@signalapp/better-sqlite3/out/Debug/better_sqlite3.node\n → [REDACTED]/node_modules/@signalapp/better-sqlite3/Debug/better_sqlite3.node\n → [REDACTED]/node_modules/@signalapp/better-sqlite3/out/Release/better_sqlite3.node\n → [REDACTED]/node_modules/@signalapp/better-sqlite3/Release/better_sqlite3.node\n → [REDACTED]/node_modules/@signalapp/better-sqlite3/build/default/better_sqlite3.node\n → [REDACTED]/node_modules/@signalapp/better-sqlite3/compiled/16.17.1/darwin/arm64/better_sqlite3.node\n → [REDACTED]/node_modules/@signalapp/better-sqlite3/addon-build/release/install-root/better_sqlite3.node\n → [REDACTED]/node_modules/@signalapp/better-sqlite3/addon-build/debug/install-root/better_sqlite3.node\n → [REDACTED]/node_modules/@signalapp/better-sqlite3/addon-build/default/install-root/better_sqlite3.node\n → [REDACTED]/node_modules/@signalapp/better-sqlite3/lib/binding/node-v110-darwin-arm64/better_sqlite3.node\n    at bindings ([REDACTED]/node_modules/bindings/bindings.js:126:9)\n    at new Database ([REDACTED]/node_modules/@signalapp/better-sqlite3/lib/database.js:48:64)\n    at openAndMigrateDatabase ([REDACTED]/ts/sql/Server.js:338:8)\n    at openAndSetUpSQLCipher ([REDACTED]/ts/sql/Server.js:356:14)\n    at Object.initialize ([REDACTED]/ts/sql/Server.js:389:10)\n    at MessagePort.<anonymous> ([REDACTED]/ts/sql/mainWorker.js:73:35)\n    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:694:20)\n    at exports.emitMessage (node:internal/per_context/messageport:23:28)"}
Unhandled Promise Rejection: Error: Error: Could not locate the bindings file. Tried:
 → /Users/zhouyingbin/Desktop/Signal-Desktop/node_modules/@signalapp/better-sqlite3/build/better_sqlite3.node
 → /Users/zhouyingbin/Desktop/Signal-Desktop/node_modules/@signalapp/better-sqlite3/build/Debug/better_sqlite3.node
 → /Users/zhouyingbin/Desktop/Signal-Desktop/node_modules/@signalapp/better-sqlite3/build/Release/better_sqlite3.node
 → /Users/zhouyingbin/Desktop/Signal-Desktop/node_modules/@signalapp/better-sqlite3/out/Debug/better_sqlite3.node
 → /Users/zhouyingbin/Desktop/Signal-Desktop/node_modules/@signalapp/better-sqlite3/Debug/better_sqlite3.node
 → /Users/zhouyingbin/Desktop/Signal-Desktop/node_modules/@signalapp/better-sqlite3/out/Release/better_sqlite3.node
 → /Users/zhouyingbin/Desktop/Signal-Desktop/node_modules/@signalapp/better-sqlite3/Release/better_sqlite3.node
 → /Users/zhouyingbin/Desktop/Signal-Desktop/node_modules/@signalapp/better-sqlite3/build/default/better_sqlite3.node
 → /Users/zhouyingbin/Desktop/Signal-Desktop/node_modules/@signalapp/better-sqlite3/compiled/16.17.1/darwin/arm64/better_sqlite3.node
 → /Users/zhouyingbin/Desktop/Signal-Desktop/node_modules/@signalapp/better-sqlite3/addon-build/release/install-root/better_sqlite3.node
 → /Users/zhouyingbin/Desktop/Signal-Desktop/node_modules/@signalapp/better-sqlite3/addon-build/debug/install-root/better_sqlite3.node
 → /Users/zhouyingbin/Desktop/Signal-Desktop/node_modules/@signalapp/better-sqlite3/addon-build/default/install-root/better_sqlite3.node
 → /Users/zhouyingbin/Desktop/Signal-Desktop/node_modules/@signalapp/better-sqlite3/lib/binding/node-v110-darwin-arm64/better_sqlite3.node
    at bindings (/Users/zhouyingbin/Desktop/Signal-Desktop/node_modules/bindings/bindings.js:126:9)
    at new Database (/Users/zhouyingbin/Desktop/Signal-Desktop/node_modules/@signalapp/better-sqlite3/lib/database.js:48:64)
    at openAndMigrateDatabase (/Users/zhouyingbin/Desktop/Signal-Desktop/ts/sql/Server.js:338:8)
    at openAndSetUpSQLCipher (/Users/zhouyingbin/Desktop/Signal-Desktop/ts/sql/Server.js:356:14)
    at Object.initialize (/Users/zhouyingbin/Desktop/Signal-Desktop/ts/sql/Server.js:389:10)
    at MessagePort.<anonymous> (/Users/zhouyingbin/Desktop/Signal-Desktop/ts/sql/mainWorker.js:73:35)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:694:20)
    at exports.emitMessage (node:internal/per_context/messageport:23:28)
    at Worker.<anonymous> (/Users/zhouyingbin/Desktop/Signal-Desktop/ts/sql/main.js:61:26)
    at Worker.emit (node:events:513:28)
    at MessagePort.<anonymous> (node:internal/worker:234:53)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:694:20)
    at exports.emitMessage (node:internal/per_context/messageport:23:28)
{"level":50,"time":"2023-05-17T09:36:39.617Z","msg":"Unhandled Promise Rejection: Error: Error: Could not locate the bindings file. Tried:\n → [REDACTED]/node_modules/@signalapp/better-sqlite3/build/better_sqlite3.node\n → [REDACTED]/node_modules/@signalapp/better-sqlite3/build/Debug/better_sqlite3.node\n → [REDACTED]/node_modules/@signalapp/better-sqlite3/build/Release/better_sqlite3.node\n → [REDACTED]/node_modules/@signalapp/better-sqlite3/out/Debug/better_sqlite3.node\n → [REDACTED]/node_modules/@signalapp/better-sqlite3/Debug/better_sqlite3.node\n → [REDACTED]/node_modules/@signalapp/better-sqlite3/out/Release/better_sqlite3.node\n → [REDACTED]/node_modules/@signalapp/better-sqlite3/Release/better_sqlite3.node\n → [REDACTED]/node_modules/@signalapp/better-sqlite3/build/default/better_sqlite3.node\n → [REDACTED]/node_modules/@signalapp/better-sqlite3/compiled/16.17.1/darwin/arm64/better_sqlite3.node\n → [REDACTED]/node_modules/@signalapp/better-sqlite3/addon-build/release/install-root/better_sqlite3.node\n → [REDACTED]/node_modules/@signalapp/better-sqlite3/addon-build/debug/install-root/better_sqlite3.node\n → [REDACTED]/node_modules/@signalapp/better-sqlite3/addon-build/default/install-root/better_sqlite3.node\n → [REDACTED]/node_modules/@signalapp/better-sqlite3/lib/binding/node-v110-darwin-arm64/better_sqlite3.node\n    at bindings ([REDACTED]/node_modules/bindings/bindings.js:126:9)\n    at new Database ([REDACTED]/node_modules/@signalapp/better-sqlite3/lib/database.js:48:64)\n    at openAndMigrateDatabase ([REDACTED]/ts/sql/Server.js:338:8)\n    at openAndSetUpSQLCipher ([REDACTED]/ts/sql/Server.js:356:14)\n    at Object.initialize ([REDACTED]/ts/sql/Server.js:389:10)\n    at MessagePort.<anonymous> ([REDACTED]/ts/sql/mainWorker.js:73:35)\n    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:694:20)\n    at exports.emitMessage (node:internal/per_context/messageport:23:28)\n    at Worker.<anonymous> ([REDACTED]/ts/sql/main.js:61:26)\n    at Worker.emit (node:events:513:28)\n    at MessagePort.<anonymous> (node:internal/worker:234:53)\n    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:694:20)\n    at exports.emitMessage (node:internal/per_context/messageport:23:28)"}
^C
/Users/zhouyingbin/Desktop/Signal-Desktop/node_modules/electron/dist/Electron.app/Contents/MacOS/Electron exited with signal SIGINT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants