Skip to content

yarn install error #5

@catmonkeylee

Description

@catmonkeylee

yarn install error:

➤ YN0007: │ better-sqlite3@npm:9.4.3 must be built because it never has been before or the last one failed
➤ YN0009: │ better-sqlite3@npm:9.4.3 couldn't be built successfully (exit code 1, logs can be found here: /private/tmp/xfs-833ed1a4/build.log)
➤ YN0000: └ Completed in 13s 335ms

then cat /private/tmp/xfs-833ed1a4/build.log


gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
TOUCH ba23eeee118cd63e16015df367567cb043fed872.intermediate
ACTION deps_sqlite3_gyp_locate_sqlite3_target_copy_builtin_sqlite3 ba23eeee118cd63e16015df367567cb043fed872.intermediate
TOUCH Release/obj.target/deps/locate_sqlite3.stamp
CC(target) Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o
LIBTOOL-STATIC Release/sqlite3.a
CXX(target) Release/obj.target/better_sqlite3/src/better_sqlite3.o
./src/util/macros.lzz:150:35: error: no matching member function for call to 'SetAccessor'
recv->InstanceTemplate()->SetAccessor(
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/goodman/Library/Caches/node-gyp/22.14.0/include/node/v8-template.h:1049:8: note: candidate function not viable: no known conversion from 'v8::AccessControl' to 'PropertyAttribute' for 5th argument
void SetAccessor(
^
/Users/goodman/Library/Caches/node-gyp/22.14.0/include/node/v8-template.h:1055:8: note: candidate function not viable: no known conversion from 'v8::AccessorGetterCallback' (aka 'void ()(Local, const PropertyCallbackInfo &)') to 'AccessorNameGetterCallback' (aka 'void ()(Local, const PropertyCallbackInfo &)') for 2nd argument
void SetAccessor(
^
./src/objects/database.lzz:180:21: warning: variable 'status' set but not used [-Wunused-but-set-variable]
int status = sqlite3_db_config(db_handle, SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION, 1, NULL);
^
./src/util/custom-table.lzz:45:9: warning: missing field 'xIntegrity' initializer [-Wmissing-field-initializers]
};
^
./src/util/custom-table.lzz:72:9: warning: missing field 'xIntegrity' initializer [-Wmissing-field-initializers]
};
^
3 warnings and 1 error generated.
make: *** [Release/obj.target/better_sqlite3/src/better_sqlite3.o] Error 1
rm ba23eeee118cd63e16015df367567cb043fed872.intermediate
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess. (/Users/goodman/workspace/opensource/omnitool/node_modules/node-gyp/lib/build.js:209:23)
gyp ERR! System Darwin 23.6.0
gyp ERR! command "/usr/local/bin/node" "/Users/goodman/workspace/opensource/omnitool/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
gyp ERR! cwd /Users/goodman/workspace/opensource/omnitool/node_modules/better-sqlite3
gyp ERR! node -v v22.14.0
gyp ERR! node-gyp -v v10.0.1
gyp ERR! not ok

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