Closed fvkd closed 2 years ago
I think you messed up commands here "sudo npm install tauri dev". And please don't use sudo with npm please follow this commands: open 2 terminals inside the project
terminal #1 run: nix-shell npm install npm run dev
terminal #2 run: nix-shell npm run tauri dev
thank you. your directions arent very clear though at this point. And I completely reformated and reinstalled NixOS and installed/ran npm only from a non-root account as you suggested here. This is where Im not clear on your directions:
system section
you can controll channels, see generations, update channels, rebuild.
on the first run you have to let app create packages and options database as root which will be located at /etc/NIX_GUI. to modify configuration.nix or rebuild system you need to run nix-gui as root or with sudo. Installed packages and channels depend on user by which app is run.
downloads and rebuild has progress bar indicator.
your directions here state that you need to run it as root.
there I am saying to run app as root. when you build app with nix-build you will have result/bin/nixos-gui and you can run it with sudo ./nixos-gui. you are trying to run tauri development environment which is fine if you want to change something in code, and have your own. but if you want to just use this app, download debian file from releases and use build command. code is provided for nix-build on readme
please forgive my ignorance. when i go to the release section, its empty. im unable to find the .deb files. theres nothing in the release section at all for me.
https://github.com/Celestialme/Nixos-Gui/releases releases reside here. you should click assets and choose .deb one.
nix-build --expr 'with import
default.nix
{ stdenv, dpkg, autoPatchelfHook,pkgs ? import <nixpkgs> {} }:
let
version = "0.1.0";
src = ./nixos-gui_0.1.0_amd64.deb;
in stdenv.mkDerivation {
name = "Nixos_Gui-${version}";
system = "x86_64-linux";
inherit src;
nativeBuildInputs = [
autoPatchelfHook
dpkg
];
buildInputs = [
pkgs.openssl
pkgs.webkitgtk
];
unpackPhase = "true";
installPhase = ''
mkdir -p $out
dpkg -x $src $out
mv $out/usr/* $out
rm -r $out/usr
'';
}
Um. I've tried everything I could think of to be sure I just wasn't missing or overlooking the assets somehow. No matter what browser I check the release page from, no matter which OS or distro or platform, even the Github app on my Pixel phone or android ThinkTablet, the Github app or browsers on my spare development iPhone or iPad, my neighbor's Macbook while it's booted to osX, Darwin, or even NixOS or NixDarwin. We can't seem to get any assets at all to show up for your repo. I feel so dumb right now.
I don't know why no releases are showing, because for me there are but nvm, i've updated installation guide and just follow this. create default.nix with this code
{ stdenv, dpkg, autoPatchelfHook,pkgs ? import <nixpkgs> {} }:
let
version = "0.1.0";
src = pkgs.fetchFromGitHub {
owner = "celestialme";
repo = "Nixos-Gui";
rev = "1d570aa795c52cc5fcdb47b8a3401286964fe576";
sha256= "0h2nfldjcqsy7szcpp87jv2sdifyr654kzpl1swhsxz0fpsb18da";
};
in stdenv.mkDerivation {
name = "Nixos_Gui-${version}";
system = "x86_64-linux";
inherit src;
nativeBuildInputs = [
autoPatchelfHook
];
buildInputs = [
pkgs.openssl
pkgs.webkitgtk
];
unpackPhase = "true";
installPhase = ''
mkdir -p $out
cp -r $src/usr/* $out
'';
}
then run.
nix-build --expr 'with import
Hey, thank you so much for your patience, understanding and help! Also for the awesome gui! It's working perfectly now for me!
after I
sudo npm run dev --host
I get `> nixos-gui@0.0.1 devSvelteKit v1.0.0-next.308
local: http://localhost:3000 network: not exposed
Use --host to expose server to other devices on this network`
then after
sudo npm install tauri dev
npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated @tauri-apps/tauri-inliner@1.14.1: Tauri now uses a custom protocol for asset loading so this package is not used anymore. npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x. npm WARN deprecated tauri@0.14.1: This package represents the Tauri alpha CLI. Use '@tauri-apps/cli' instead. npm ERR! code 1 npm ERR! path /home/fvcker/Documents/clones/Nixos-Gui/node_modules/inotify npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! make: Entering directory '/home/fvcker/Documents/clones/Nixos-Gui/node_modules/inotify/build' npm ERR! CXX(target) Release/obj.target/inotify/src/bindings.o npm ERR! make: Leaving directory '/home/fvcker/Documents/clones/Nixos-Gui/node_modules/inotify/build' 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.15.0 | linux | x64 npm ERR! gyp info find Python using Python version 3.11.0 found at "/root/.nix-profile/bin/python3" npm ERR! gyp info spawn /root/.nix-profile/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/nix/store/nd2xs4mks0zv2cmyk4a35bs5m32m8qn6-nodejs-16.15.0/lib/node_modules/npm/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/fvcker/Documents/clones/Nixos-Gui/node_modules/inotify/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/nix/store/nd2xs4mks0zv2cmyk4a35bs5m32m8qn6-nodejs-16.15.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/root/.cache/node-gyp/16.15.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=/root/.cache/node-gyp/16.15.0', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/nix/store/nd2xs4mks0zv2cmyk4a35bs5m32m8qn6-nodejs-16.15.0/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/16.15.0/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/fvcker/Documents/clones/Nixos-Gui/node_modules/inotify', 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! In file included from ../src/bindings.cc:2: npm ERR! ../src/bindings.h:10:48: error: ‘Handle’ has not been declared npm ERR! 10 | static void Initialize(Handle<Object> target); npm ERR! | ^~~~~~ npm ERR! ../src/bindings.h:10:54: error: expected ‘,’ or ‘...’ before ‘<’ token npm ERR! 10 | static void Initialize(Handle<Object> target); npm ERR! | ^ npm ERR! ../src/bindings.cc:11:14: error: variable or field ‘Initialize’ declared void npm ERR! 11 | void Inotify::Initialize(Handle<Object> exports) { npm ERR! | ^~~~~~~ npm ERR! ../src/bindings.cc:11:34: error: ‘Handle’ was not declared in this scope npm ERR! 11 | void Inotify::Initialize(Handle<Object> exports) { npm ERR! | ^~~~~~ npm ERR! ../src/bindings.cc:11:47: error: expected primary-expression before ‘>’ token npm ERR! 11 | void Inotify::Initialize(Handle<Object> exports) { npm ERR! | ^ npm ERR! ../src/bindings.cc:11:49: error: ‘exports’ was not declared in this scope npm ERR! 11 | void Inotify::Initialize(Handle<Object> exports) { npm ERR! | ^~~~~~~ npm ERR! ../src/bindings.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE NodeInotify::Inotify::AddWatch(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/bindings.cc:146:56: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! 146 | Local<Object> args_ = info[0]->ToObject(); npm ERR! | ~~~~~~~~~~~~~~~~~^~ npm ERR! In file included from /root/.cache/node-gyp/16.15.0/include/node/node.h:63, npm ERR! from ../src/node_inotify.h:5, npm ERR! from ../src/bindings.h:4, npm ERR! from ../src/bindings.cc:2: npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ npm ERR! 3060 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! | ^~~~~~~~ npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/bindings.cc:149:32: error: no matching function for call to ‘v8::Object::Has(v8::Local<v8::String>&)’ npm ERR! 149 | if (!args_->Has(path_sym)) { npm ERR! | ~~~~~~~~~~^~~~~~~~~~ npm ERR! In file included from /root/.cache/node-gyp/16.15.0/include/node/node.h:63, npm ERR! from ../src/node_inotify.h:5, npm ERR! from ../src/bindings.h:4, npm ERR! from ../src/bindings.cc:2: npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4042:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Has(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! 4042 | V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context, npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4042:37: note: candidate expects 2 arguments, 1 provided npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4048:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Has(v8::Local<v8::Context>, uint32_t)’ npm ERR! 4048 | V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context, uint32_t index); npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4048:37: note: candidate expects 2 arguments, 1 provided npm ERR! ../src/bindings.cc:154:32: error: no matching function for call to ‘v8::Object::Has(v8::Local<v8::String>&)’ npm ERR! 154 | if (!args_->Has(callback_sym) || npm ERR! | ~~~~~~~~~~^~~~~~~~~~~~~~ npm ERR! In file included from /root/.cache/node-gyp/16.15.0/include/node/node.h:63, npm ERR! from ../src/node_inotify.h:5, npm ERR! from ../src/bindings.h:4, npm ERR! from ../src/bindings.cc:2: npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4042:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Has(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! 4042 | V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context, npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4042:37: note: candidate expects 2 arguments, 1 provided npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4048:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Has(v8::Local<v8::Context>, uint32_t)’ npm ERR! 4048 | V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context, uint32_t index); npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4048:37: note: candidate expects 2 arguments, 1 provided npm ERR! ../src/bindings.cc:155:36: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>&)’ npm ERR! 155 | !args_->Get(callback_sym)->IsFunction()) { npm ERR! | ~~~~~~~~~~^~~~~~~~~~~~~~ npm ERR! In file included from /root/.cache/node-gyp/16.15.0/include/node/node.h:63, npm ERR! from ../src/node_inotify.h:5, npm ERR! from ../src/bindings.h:4, npm ERR! from ../src/bindings.cc:2: npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! 4007 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4007:43: note: candidate expects 2 arguments, 1 provided npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! 4010 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4010:43: note: candidate expects 2 arguments, 1 provided npm ERR! ../src/bindings.cc:160:32: error: no matching function for call to ‘v8::Object::Has(v8::Local<v8::String>&)’ npm ERR! 160 | if (!args_->Has(watch_for_sym)) { npm ERR! | ~~~~~~~~~~^~~~~~~~~~~~~~~ npm ERR! In file included from /root/.cache/node-gyp/16.15.0/include/node/node.h:63, npm ERR! from ../src/node_inotify.h:5, npm ERR! from ../src/bindings.h:4, npm ERR! from ../src/bindings.cc:2: npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4042:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Has(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! 4042 | V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context, npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4042:37: note: candidate expects 2 arguments, 1 provided npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4048:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Has(v8::Local<v8::Context>, uint32_t)’ npm ERR! 4048 | V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context, uint32_t index); npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4048:37: note: candidate expects 2 arguments, 1 provided npm ERR! ../src/bindings.cc:163:40: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>&)’ npm ERR! 163 | if (!args_->Get(watch_for_sym)->IsInt32()) { npm ERR! | ~~~~~~~~~~^~~~~~~~~~~~~~~ npm ERR! In file included from /root/.cache/node-gyp/16.15.0/include/node/node.h:63, npm ERR! from ../src/node_inotify.h:5, npm ERR! from ../src/bindings.h:4, npm ERR! from ../src/bindings.cc:2: npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! 4007 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4007:43: note: candidate expects 2 arguments, 1 provided npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! 4010 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4010:43: note: candidate expects 2 arguments, 1 provided npm ERR! ../src/bindings.cc:166:43: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>&)’ npm ERR! 166 | mask |= args_->Get(watch_for_sym)->Int32Value(); npm ERR! | ~~~~~~~~~~^~~~~~~~~~~~~~~ npm ERR! In file included from /root/.cache/node-gyp/16.15.0/include/node/node.h:63, npm ERR! from ../src/node_inotify.h:5, npm ERR! from ../src/bindings.h:4, npm ERR! from ../src/bindings.cc:2: npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! 4007 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4007:43: note: candidate expects 2 arguments, 1 provided npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! 4010 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4010:43: note: candidate expects 2 arguments, 1 provided npm ERR! ../src/bindings.cc:172:50: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>&)’ npm ERR! 172 | String::Utf8Value path(args_->Get(path_sym)); npm ERR! | ~~~~~~~~~~^~~~~~~~~~ npm ERR! In file included from /root/.cache/node-gyp/16.15.0/include/node/node.h:63, npm ERR! from ../src/node_inotify.h:5, npm ERR! from ../src/bindings.h:4, npm ERR! from ../src/bindings.cc:2: npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! 4007 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4007:43: note: candidate expects 2 arguments, 1 provided npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! 4010 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4010:43: note: candidate expects 2 arguments, 1 provided npm ERR! ../src/bindings.cc:182:62: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>&)’ npm ERR! 182 | inotify->handle()->Set(descriptor, args_->Get(callback_sym)); npm ERR! | ~~~~~~~~~~^~~~~~~~~~~~~~ npm ERR! In file included from /root/.cache/node-gyp/16.15.0/include/node/node.h:63, npm ERR! from ../src/node_inotify.h:5, npm ERR! from ../src/bindings.h:4, npm ERR! from ../src/bindings.cc:2: npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! 4007 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4007:43: note: candidate expects 2 arguments, 1 provided npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! 4010 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4010:43: note: candidate expects 2 arguments, 1 provided npm ERR! ../src/bindings.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE NodeInotify::Inotify::RemoveWatch(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/bindings.cc:195:44: error: no matching function for call to ‘v8::Value::Int32Value()’ npm ERR! 195 | watch = info[0]->Int32Value(); npm ERR! | ~~~~~~~~~~~~~~~~~~~^~ npm ERR! In file included from /root/.cache/node-gyp/16.15.0/include/node/node.h:63, npm ERR! from ../src/node_inotify.h:5, npm ERR! from ../src/bindings.h:4, npm ERR! from ../src/bindings.cc:2: npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:3107:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’ npm ERR! 3107 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const; npm ERR! | ^~~~~~~~~~ npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:3107:40: note: candidate expects 1 argument, 0 provided npm ERR! ../src/bindings.cc: In static member function ‘static void NodeInotify::Inotify::Callback(uv_poll_t*, int, int)’: npm ERR! ../src/bindings.cc:262:41: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Integer>::return_t)’ npm ERR! 262 | obj->Set(Nan::New<String>("watch").ToLocalChecked(), Nan::New<Integer>(event->wd)); npm ERR! | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! In file included from /root/.cache/node-gyp/16.15.0/include/node/node.h:63, npm ERR! from ../src/node_inotify.h:5, npm ERR! from ../src/bindings.h:4, npm ERR! from ../src/bindings.cc:2: npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’ npm ERR! 3961 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:3961:37: note: candidate expects 3 arguments, 2 provided npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’ npm ERR! 3964 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:3964:37: note: candidate expects 3 arguments, 2 provided npm ERR! ../src/bindings.cc:263:41: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Integer>::return_t)’ npm ERR! 263 | obj->Set(Nan::New<String>("mask").ToLocalChecked(), Nan::New<Integer>(event->mask)); npm ERR! | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! In file included from /root/.cache/node-gyp/16.15.0/include/node/node.h:63, npm ERR! from ../src/node_inotify.h:5, npm ERR! from ../src/bindings.h:4, npm ERR! from ../src/bindings.cc:2: npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’ npm ERR! 3961 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:3961:37: note: candidate expects 3 arguments, 2 provided npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’ npm ERR! 3964 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:3964:37: note: candidate expects 3 arguments, 2 provided npm ERR! ../src/bindings.cc:264:41: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Integer>::return_t)’ npm ERR! 264 | obj->Set(Nan::New<String>("cookie").ToLocalChecked(), Nan::New<Integer>(event->cookie)); npm ERR! | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! In file included from /root/.cache/node-gyp/16.15.0/include/node/node.h:63, npm ERR! from ../src/node_inotify.h:5, npm ERR! from ../src/bindings.h:4, npm ERR! from ../src/bindings.cc:2: npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’ npm ERR! 3961 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:3961:37: note: candidate expects 3 arguments, 2 provided npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’ npm ERR! 3964 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:3964:37: note: candidate expects 3 arguments, 2 provided npm ERR! ../src/bindings.cc:267:49: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::String>)’ npm ERR! 267 | obj->Set(Nan::New<String>("name").ToLocalChecked(), Nan::New<String>(event->name).ToLocalChecked()); npm ERR! | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! In file included from /root/.cache/node-gyp/16.15.0/include/node/node.h:63, npm ERR! from ../src/node_inotify.h:5, npm ERR! from ../src/bindings.h:4, npm ERR! from ../src/bindings.cc:2: npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’ npm ERR! 3961 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:3961:37: note: candidate expects 3 arguments, 2 provided npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’ npm ERR! 3964 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:3964:37: note: candidate expects 3 arguments, 2 provided npm ERR! ../src/bindings.cc:275:65: error: no matching function for call to ‘v8::Object::Get(Nan::imp::IntegerFactory<v8::Integer>::return_t)’ npm ERR! 275 | Local<Value> value = handle->Get(Nan::New<Integer>(event->wd)); npm ERR! | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! In file included from /root/.cache/node-gyp/16.15.0/include/node/node.h:63, npm ERR! from ../src/node_inotify.h:5, npm ERR! from ../src/bindings.h:4, npm ERR! from ../src/bindings.cc:2: npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! 4007 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4007:43: note: candidate expects 2 arguments, 1 provided npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! 4010 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:4010:43: note: candidate expects 2 arguments, 1 provided npm ERR! ../src/bindings.cc:279:46: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations] npm ERR! 279 | callback.Call(handle, 1, argv); npm ERR! | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ npm ERR! In file included from ../src/node_inotify.h:14, npm ERR! from ../src/bindings.h:4, npm ERR! from ../src/bindings.cc:2: npm ERR! ../../nan/nan.h:1724:3: note: declared here npm ERR! 1724 | Call(v8::Local<v8::Object> target npm ERR! | ^~~~ npm ERR! ../src/bindings.cc:285:68: error: no matching function for call to ‘v8::Value::ToString()’ npm ERR! 285 | handle->Delete(wd->ToString()); npm ERR! | ~~~~~~~~~~~~^~ npm ERR! In file included from /root/.cache/node-gyp/16.15.0/include/node/node.h:63, npm ERR! from ../src/node_inotify.h:5, npm ERR! from ../src/bindings.h:4, npm ERR! from ../src/bindings.cc:2: npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:3048:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’ npm ERR! 3048 | V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString( npm ERR! | ^~~~~~~~ npm ERR! /root/.cache/node-gyp/16.15.0/include/node/v8.h:3048:44: note: candidate expects 1 argument, 0 provided npm ERR! make: *** [inotify.target.mk:110: Release/obj.target/inotify/src/bindings.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 (/nix/store/nd2xs4mks0zv2cmyk4a35bs5m32m8qn6-nodejs-16.15.0/lib/node_modules/npm/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 Linux 5.15.43 npm ERR! gyp ERR! command "/nix/store/nd2xs4mks0zv2cmyk4a35bs5m32m8qn6-nodejs-16.15.0/bin/node" "/nix/store/nd2xs4mks0zv2cmyk4a35bs5m32m8qn6-nodejs-16.15.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /home/fvcker/Documents/clones/Nixos-Gui/node_modules/inotify npm ERR! gyp ERR! node -v v16.15.0 npm ERR! gyp ERR! node-gyp -v v9.0.0 npm ERR! gyp ERR! not oknpm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2022-06-19T19_56_00_374Z-debug-0.log`
Not sure where I'm going wrong here.