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

electron-rebuild fails with v5 #55

Closed
deepak342 opened this issue Oct 19, 2020 · 6 comments
Closed

electron-rebuild fails with v5 #55

deepak342 opened this issue Oct 19, 2020 · 6 comments

Comments

@deepak342
Copy link

deepak342 commented Oct 19, 2020

\ Building module: sqlcipher, Completed: 0Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.

  • Building module: sqlcipher, Completed: 0 nothing.c
    | Building module: sqlcipher, Completed: 0 win_delay_load_hook.cc
    | Building module: sqlcipher, Completed: 0 nothing.vcxproj -> D:\dev\test-app\src\node_modules@journeyapps\sqlcipher\build\Release\nothing.lib
    / Building module: sqlcipher, Completed: 0 unpack_sqlite_dep
  • Building module: sqlcipher, Completed: 0 Copying D:\dev\test-app\src\node_modules@journeyapps\sqlcipher\build\Release/obj/global_intermediate/sqlcipher-amalgamation-3031000/OpenSSL-Win64/msvcr120
    .dll to D:\dev\test-app\src\node_modules@journeyapps\sqlcipher\build\Release
    1 file(s) copied.
    Copying D:\dev\test-app\src\node_modules@journeyapps\sqlcipher\build\Release/obj/global_intermediate/sqlcipher-amalgamation-3031000/OpenSSL-Win64/libeay32
    .dll to D:\dev\test-app\src\node_modules@journeyapps\sqlcipher\build\Release
    1 file(s) copied.
    \ Building module: sqlcipher, Completed: 0 sqlite3.c
  • Building module: sqlcipher, Completed: 0 win_delay_load_hook.cc
  • Building module: sqlcipher, Completed: 0 sqlite3.vcxproj -> D:\dev\test-app\src\node_modules@journeyapps\sqlcipher\build\Release\sqlite3.lib
    | Building module: sqlcipher, Completed: 0 backup.cc
    \ Building module: sqlcipher, Completed: 0D:\dev\test-app\src\node_modules\node-addon-api\napi-inl.h(752): error C3861: 'napi_create_bigint_int64': identifier not found [D:\dev\test-app\src\n
    ode_modules@journeyapps\sqlcipher\build\node_sqlite3.vcxproj]
    D:\dev\test-app\src\node_modules\node-addon-api\napi-inl.h(759): error C3861: 'napi_create_bigint_uint64': identifier not found [D:\dev\test-app\src
    node_modules@journeyapps\sqlcipher\build\node_sqlite3.vcxproj]
    D:\dev\test-app\src\node_modules\node-addon-api\napi-inl.h(766): error C3861: 'napi_create_bigint_words': identifier not found [D:\dev\test-app\src\n
    ode_modules@journeyapps\sqlcipher\build\node_sqlite3.vcxproj]
    D:\dev\test-app\src\node_modules\node-addon-api\napi-inl.h(779): error C3861: 'napi_get_value_bigint_int64': identifier not found [D:\dev\test-app\sr
    c\node_modules@journeyapps\sqlcipher\build\node_sqlite3.vcxproj]
    D:\dev\test-app\src\node_modules\node-addon-api\napi-inl.h(787): error C3861: 'napi_get_value_bigint_uint64': identifier not found [D:\dev\test-app\s
    rc\node_modules@journeyapps\sqlcipher\build\node_sqlite3.vcxproj]
    D:\dev\test-app\src\node_modules\node-addon-api\napi-inl.h(795): error C3861: 'napi_get_value_bigint_words': identifier not found [D:\dev\test-app\sr
    c\node_modules@journeyapps\sqlcipher\build\node_sqlite3.vcxproj]
    D:\dev\test-app\src\node_modules\node-addon-api\napi-inl.h(802): error C3861: 'napi_get_value_bigint_words': identifier not found [D:\dev\test-app\sr
    c\node_modules@journeyapps\sqlcipher\build\node_sqlite3.vcxproj]
    × Rebuild Failed

An unhandled error occurred inside electron-rebuild
node-gyp failed to rebuild 'D:\dev\test-app\src\node_modules@journeyapps\sqlcipher'.
Error: C:\Program Files (x86)\MSBuild\14.0\bin\MSBuild.exe failed with exit code: 1

Error: node-gyp failed to rebuild 'D:\dev\test-app\src\node_modules@journeyapps\sqlcipher'.
Error: C:\Program Files (x86)\MSBuild\14.0\bin\MSBuild.exe failed with exit code: 1

at ModuleRebuilder.rebuildNodeGypModule (D:\dev\test-app\node_modules\electron-rebuild\lib\src\module-rebuilder.js:193:19)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 4294967295
npm ERR! [email protected] postinstall: npx webdriver-manager update --versions.chrome 83.0.4103.39 && npx bower i -p --allow-root && cd src && npm i --production && cd .. && npx electron-rebuild -m src && node task/post-install.js && npm run gen
npm ERR! Exit status 4294967295
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\admin\AppData\Roaming\npm-cache_logs\2020-10-19T14_21_13_593Z-debug.log

node -v => v12.17.0

npx electron -v =>v10.1.3

@gaurav-vachhani
Copy link

@deepak342 any luck? I am also facing the same issue.

@deepak342
Copy link
Author

@gaurav-vachhani No luck. reverted to using [email protected] and [email protected]

@Kepro
Copy link

Kepro commented Dec 3, 2020

same for me... it's working on MAC but on on Windows..

@1111mp
Copy link

1111mp commented Jan 5, 2021

Is there a solution?

@deepak342
Copy link
Author

The error is due to older version of visual studio. You need vs2017.

Do npm i -g windows-build-tools to fix it.

@Kepro
Copy link

Kepro commented Jan 11, 2021

@deepak342 can you update readme? as it's outdated...

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

No branches or pull requests

4 participants