node-sqlcipher
node-sqlcipher copied to clipboard
npm install: Failed at the @journeyapps/[email protected] install script
- Electron-Builder Version: 21.2.0
- Node Version: 10.15.3
- Electron Version: 4.1.5 log:
[email protected] postinstall /Users/uu/Documents/uu_repo/rocket_pc electron-builder install-app-deps
• electron-builder version=21.2.0 • rebuilding native dependencies dependencies=@byted/[email protected], @byted/[email protected], @byted/[email protected], @journeyapps/[email protected], [email protected], [email protected] platform=darwin arch=x64 ⨯ cannot execute cause=exit status 1 out= > @byted/[email protected] install /Users/uu/Documents/uu_repo/rocket_pc/node_modules/@byted/macos-progress > node-gyp rebuild
CXX(target) Release/obj.target/macos-progress/src/node_progress.o
CXX(target) Release/obj.target/macos-progress/src/FileProgress.o
CXX(target) Release/obj.target/macos-progress/src/Progress.o
SOLINK_MODULE(target) Release/macos-progress.node
> @byted/[email protected] install /Users/uu/Documents/uu_repo/rocket_pc/node_modules/@byted/rocket-electron-enhance
> node-gyp rebuild
CC(target) Release/obj.target/nothing/../../node-addon-api/src/nothing.o
LIBTOOL-STATIC Release/nothing.a
CXX(target) Release/obj.target/electron-enhance/src/electron-enhance.o
CXX(target) Release/obj.target/electron-enhance/src/clipboard/clipboard.o
CXX(target) Release/obj.target/electron-enhance/src/clipboard/darwin.o
SOLINK_MODULE(target) Release/electron-enhance.node
> @byted/[email protected] install /Users/uu/Documents/uu_repo/rocket_pc/node_modules/@byted/rocket-pc-screen-capture
> node install.js
Not windows, skip build ...
> @journeyapps/[email protected] install /Users/uu/Documents/uu_repo/rocket_pc/node_modules/@journeyapps/sqlcipher
> node-pre-gyp install --fallback-to-build
ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlcipher-amalgamation-3028000/sqlite3.c
TOUCH Release/obj.target/deps/action_before_build.stamp
TOUCH Release/obj.target/deps/copy_dll.stamp
CC(target) Release/obj.target/sqlite3/gen/sqlcipher-amalgamation-3028000/sqlite3.o
LIBTOOL-STATIC Release/sqlite3.a
CXX(target) Release/obj.target/node_sqlite3/src/backup.o
Failed to execute '/Users/uu/Desktop/node-v10.15.3-darwin-x64/bin/node /Users/uu/Desktop/node-v10.15.3-darwin-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/uu/Documents/uu_repo/rocket_pc/node_modules/@journeyapps/sqlcipher/lib/binding/electron-v4.1-darwin-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/Users/uu/Documents/uu_repo/rocket_pc/node_modules/@journeyapps/sqlcipher/lib/binding/electron-v4.1-darwin-x64 --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=electron-v4.1' (1)
errorOut=warning: /Library/Developer/CommandLineTools/usr/bin/libtool: archive library: Release/nothing.a the table of contents is empty (no object file members in the library define global symbols)
clang: warning: include path for libstdc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://journeyapps-node-binary.s3.amazonaws.com/@journeyapps/sqlcipher/v4.0.0/electron-v4.1-darwin-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for @journeyapps/[email protected] and [email protected] (electron-v4.1 ABI, unknown) (falling back to source compile with node-gyp)
Release/obj/gen/sqlcipher-amalgamation-3028000/sqlite3.c:23144:7: warning: unused variable 'i' [-Wunused-variable]
int i, rc = 0;
^
Release/obj/gen/sqlcipher-amalgamation-3028000/sqlite3.c:78009:33: warning: comparison of integers of different signs: 'u32' (aka 'unsigned int') and 'const int' [-Wsign-compare]
if( rc==SQLITE_OK && newPgsz!=nSrcPgsz ) rc = SQLITE_READONLY;
~~~~~~~^ ~~~~~~~~
Release/obj/gen/sqlcipher-amalgamation-3028000/sqlite3.c:127474:26: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for(i=0, iByte=0; i<sizeof(zKey)*2 && sqlite3Isxdigit(zRight[i]); i++){
~^~~~~~~~~~~~~~~
Release/obj/gen/sqlcipher-amalgamation-3028000/sqlite3.c:161721:24: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
for(i=0, iByte=0; i<sizeof(zDecoded)*2 && sqlite3Isxdigit(zKey[i]); i++){
~^~~~~~~~~~~~~~~~~~~
Release/obj/gen/sqlcipher-amalgamation-3028000/sqlite3.c:62445:20: warning: unused function 'sqlite3PagerState' [-Wunused-function]
SQLITE_PRIVATE int sqlite3PagerState(Pager *pPager){
^
5 warnings generated.
In file included from ../src/backup.cc:2:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/node.h:67:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/v8.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:669:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:420:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstddef:37:
./Release/obj/gen/sqlcipher-amalgamation-3028000/version:1:1: error: expected unqualified-id
3.28.0
^
In file included from ../src/backup.cc:2:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/node.h:67:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/v8.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:669:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:421:
./Release/obj/gen/sqlcipher-amalgamation-3028000/version:1:1: error: expected unqualified-id
3.28.0
^
In file included from ../src/backup.cc:2:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/node.h:67:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/v8.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:670:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/typeinfo:61:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/exception:85:
./Release/obj/gen/sqlcipher-amalgamation-3028000/version:1:1: error: expected unqualified-id
3.28.0
^
In file included from ../src/backup.cc:2:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/node.h:67:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/v8.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:673:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/new:95:
./Release/obj/gen/sqlcipher-amalgamation-3028000/version:1:1: error: expected unqualified-id
3.28.0
^
In file included from ../src/backup.cc:2:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/node.h:67:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/v8.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:674:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/utility:205:
./Release/obj/gen/sqlcipher-amalgamation-3028000/version:1:1: error: expected unqualified-id
3.28.0
^
In file included from ../src/backup.cc:2:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/node.h:67:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/v8.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:675:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/limits:121:
./Release/obj/gen/sqlcipher-amalgamation-3028000/version:1:1: error: expected unqualified-id
3.28.0
^
In file included from ../src/backup.cc:2:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/node.h:67:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/v8.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:676:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iterator:424:
./Release/obj/gen/sqlcipher-amalgamation-3028000/version:1:1: error: expected unqualified-id
3.28.0
^
In file included from ../src/backup.cc:2:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/node.h:67:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/v8.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:679:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/tuple:154:
./Release/obj/gen/sqlcipher-amalgamation-3028000/version:1:1: error: expected unqualified-id
3.28.0
^
In file included from ../src/backup.cc:2:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/node.h:67:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/v8.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:687:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:579:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__threading_support:15:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/chrono:832:
./Release/obj/gen/sqlcipher-amalgamation-3028000/version:1:1: error: expected unqualified-id
3.28.0
^
In file included from ../src/backup.cc:2:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/node.h:67:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/v8.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:687:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:584:
./Release/obj/gen/sqlcipher-amalgamation-3028000/version:1:1: error: expected unqualified-id
3.28.0
^
In file included from ../src/backup.cc:2:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/node.h:67:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/v8.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:689:
./Release/obj/gen/sqlcipher-amalgamation-3028000/version:1:1: error: expected unqualified-id
3.28.0
^
In file included from ../src/backup.cc:2:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/node.h:67:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/v8.h:23:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:276:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__bit_reference:15:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/algorithm:654:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:511:
./Release/obj/gen/sqlcipher-amalgamation-3028000/version:1:1: error: expected unqualified-id
3.28.0
^
In file included from ../src/backup.cc:2:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/node.h:67:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/v8.h:23:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:276:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__bit_reference:15:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/algorithm:657:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/bit:61:
./Release/obj/gen/sqlcipher-amalgamation-3028000/version:1:1: error: expected unqualified-id
3.28.0
^
In file included from ../src/backup.cc:2:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/node.h:67:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/v8.h:23:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:276:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__bit_reference:15:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/algorithm:658:
./Release/obj/gen/sqlcipher-amalgamation-3028000/version:1:1: error: expected unqualified-id
3.28.0
^
In file included from ../src/backup.cc:2:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/node.h:67:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/v8.h:23:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:285:
./Release/obj/gen/sqlcipher-amalgamation-3028000/version:1:1: error: expected unqualified-id
3.28.0
^
In file included from ../src/backup.cc:2:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/node.h:68:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/v8-platform.h:12:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:511:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string_view:185:
./Release/obj/gen/sqlcipher-amalgamation-3028000/version:1:1: error: expected unqualified-id
3.28.0
^
In file included from ../src/backup.cc:2:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/node.h:68:
In file included from /Users/uu/.electron-gyp/4.1.5/include/node/v8-platform.h:12:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:524:
./Release/obj/gen/sqlcipher-amalgamation-3028000/version:1:1: error: expected unqualified-id
3.28.0
^
In file included from ../src/backup.cc:7:
In file included from ../src/database.h:7:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/queue:182:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/deque:170:
./Release/obj/gen/sqlcipher-amalgamation-3028000/version:1:1: error: expected unqualified-id
3.28.0
^
In file included from ../src/backup.cc:8:
In file included from ../src/backup.h:8:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/set:430:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__node_handle:15:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:159:
./Release/obj/gen/sqlcipher-amalgamation-3028000/version:1:1: error: expected unqualified-id
3.28.0
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/node_sqlite3/src/backup.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/uu/Desktop/node-v10.15.3-darwin-x64/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:189:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Darwin 21.1.0
gyp ERR! command "/Users/uu/Desktop/node-v10.15.3-darwin-x64/bin/node" "/Users/uu/Desktop/node-v10.15.3-darwin-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/uu/Documents/uu_repo/rocket_pc/node_modules/@journeyapps/sqlcipher/lib/binding/electron-v4.1-darwin-x64/node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=/Users/uu/Documents/uu_repo/rocket_pc/node_modules/@journeyapps/sqlcipher/lib/binding/electron-v4.1-darwin-x64" "--napi_version=3" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=electron-v4.1"
gyp ERR! cwd /Users/uu/Documents/uu_repo/rocket_pc/node_modules/@journeyapps/sqlcipher
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/Users/uu/Desktop/node-v10.15.3-darwin-x64/bin/node /Users/uu/Desktop/node-v10.15.3-darwin-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/uu/Documents/uu_repo/rocket_pc/node_modules/@journeyapps/sqlcipher/lib/binding/electron-v4.1-darwin-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/Users/uu/Documents/uu_repo/rocket_pc/node_modules/@journeyapps/sqlcipher/lib/binding/electron-v4.1-darwin-x64 --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=electron-v4.1' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/uu/Documents/uu_repo/rocket_pc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:189:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:970:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
node-pre-gyp ERR! System Darwin 21.1.0
node-pre-gyp ERR! command "/Users/uu/Desktop/node-v10.15.3-darwin-x64/bin/node" "/Users/uu/Documents/uu_repo/rocket_pc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/uu/Documents/uu_repo/rocket_pc/node_modules/@journeyapps/sqlcipher
node-pre-gyp ERR! node -v v10.15.3
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @journeyapps/[email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @journeyapps/[email protected] install 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! /Users/uu/.npm/_logs/2022-03-10T12_37_01_168Z-debug.log
command=/Users/uu/Desktop/node-v10.15.3-darwin-x64/bin/node /Users/uu/Desktop/node-v10.15.3-darwin-x64/lib/node_modules/npm/bin/npm-cli.js rebuild @byted/[email protected] @byted/[email protected] @byted/[email protected] @journeyapps/[email protected] [email protected] [email protected]
workingDir=
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: electron-builder install-app-deps
npm ERR! Exit status 1
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! /Users/uu/.npm/_logs/2022-03-10T12_37_01_242Z-debug.log
Those are old versions of Node, Electron and this library, and we can't provide support for that unfortunately. A lot of changes and fixes have been made to the installation process since then. I recommend upgrading to the latest version of this library, and more recent versions of Node and Electron.