This repository was archived by the owner on Apr 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Unable to run npm install #125
Copy link
Copy link
Open
Description
When I run npm install, I get the following error:
npm ERR! code 1
npm ERR! path /home/user/mx-puppet-slack/node_modules/better-sqlite3
npm ERR! command failed
npm ERR! command sh -c prebuild-install || npm run build-release
npm ERR! > better-sqlite3@6.0.1 build-release
npm ERR! > node-gyp rebuild --release
npm ERR!
npm ERR! make: Entering directory '/home/user/mx-puppet-slack/node_modules/better-sqlite3/build'
npm ERR! TOUCH b857c92884e9598d609f6be182a2595df7a8e00f.intermediate
npm ERR! ACTION deps_sqlite3_gyp_locate_sqlite3_target_extract_sqlite3 b857c92884e9598d609f6be182a2595df7a8e00f.intermediate
npm ERR! TOUCH Release/obj.target/deps/locate_sqlite3.stamp
npm ERR! CC(target) Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o
npm ERR! AR(target) Release/obj.target/deps/sqlite3.a
npm ERR! COPY Release/sqlite3.a
npm ERR! CXX(target) Release/obj.target/better_sqlite3/src/better_sqlite3.o
npm ERR! rm b857c92884e9598d609f6be182a2595df7a8e00f.intermediate
npm ERR! make: Leaving directory '/home/user/mx-puppet-slack/node_modules/better-sqlite3/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@8.1.0
npm ERR! gyp info using node@16.3.0 | linux | arm
npm ERR! gyp info find Python using Python version 3.9.5 found at "/usr/bin/python3"
npm ERR! (node:569) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created)
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/usr/lib/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 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/user/mx-puppet-slack/node_modules/better-sqlite3/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/usr/lib/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/user/.cache/node-gyp/16.3.0/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=/home/user/.cache/node-gyp/16.3.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/home/user/.cache/node-gyp/16.3.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/user/mx-puppet-slack/node_modules/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 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! Release/obj/gen/sqlite3/sqlite3.c: In function 'sqlite3SelectNew':
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:128048:10: warning: function may return address of local variable [-Wreturn-local-addr]
npm ERR! 128048 | return pNew;
npm ERR! | ^~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:128008:10: note: declared here
npm ERR! 128008 | Select standin;
npm ERR! | ^~~~~~~
npm ERR! Release/obj/gen/sqlite3/sqlite3.c:128008:10: note: declared here
npm ERR! In file included from ./src/better_sqlite3.lzz:10,
npm ERR! from ../src/better_sqlite3.cpp:4:
npm ERR! /home/user/.cache/node-gyp/16.3.0/include/node/node.h:806:7: warning: cast between incompatible function types from 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Object>)' to 'node::addon_register_func' {aka 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)'} [-Wcast-function-type]
npm ERR! 806 | (node::addon_register_func) (regfunc), \
npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/user/.cache/node-gyp/16.3.0/include/node/node.h:840:3: note: in expansion of macro 'NODE_MODULE_X'
npm ERR! 840 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
npm ERR! | ^~~~~~~~~~~~~
npm ERR! ./src/better_sqlite3.lzz:15:1: note: in expansion of macro 'NODE_MODULE'
npm ERR! ./src/objects/database.lzz: In static member function 'static void Database::Init(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Object>)':
npm ERR! ./src/objects/database.lzz:129:40: error: cannot convert 'void (*)(void*)' to 'node::Environment*'
npm ERR! In file included from ./src/better_sqlite3.lzz:10,
npm ERR! from ../src/better_sqlite3.cpp:4:
npm ERR! /home/user/.cache/node-gyp/16.3.0/include/node/node.h:898:38: note: initializing argument 1 of 'void node::AtExit(node::Environment*, void (*)(void*), void*)'
npm ERR! 898 | NODE_EXTERN void AtExit(Environment* env,
npm ERR! | ~~~~~~~~~~~~~^~~
npm ERR! ./src/util/binder.lzz: In static member function 'static bool Binder::IsPlainObject(v8::Isolate*, v8::Local<v8::Object>)':
npm ERR! ./src/util/binder.lzz:36:67: warning: 'v8::Local<v8::Context> v8::Object::CreationContext()' is deprecated: Use MaybeLocal<Context> GetCreationContext() [-Wdeprecated-declarations]
npm ERR! In file included from /home/user/.cache/node-gyp/16.3.0/include/node/node.h:63,
npm ERR! from ./src/better_sqlite3.lzz:10,
npm ERR! from ../src/better_sqlite3.cpp:4:
npm ERR! /home/user/.cache/node-gyp/16.3.0/include/node/v8.h:4281:18: note: declared here
npm ERR! 4281 | Local<Context> CreationContext();
npm ERR! | ^~~~~~~~~~~~~~~
npm ERR! make: *** [better_sqlite3.target.mk:119: Release/obj.target/better_sqlite3/src/better_sqlite3.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:394:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Linux 5.10.42-1-ARCH
npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
npm ERR! gyp ERR! cwd /home/user/mx-puppet-slack/node_modules/better-sqlite3
npm ERR! gyp ERR! node -v v16.3.0
npm ERR! gyp ERR! node-gyp -v v8.1.0
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /home/user/.npm/_logs/2021-06-14T19_46_58_379Z-debug.log
I'm currently running this on a raspberry pi running archlinuxarm.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels