You are not logged in.
Pages: 1
I have a dual boot isntallation of Arch and Windows on my SSD. I have another HDD that I use as a shared partition for both OSs. After some research I decided to format it to exFAT because it was "the best option". After that, I started to have some problems related to limitations of the filesystem: first, some issues with needing sudo permissions to create a file, but I managed to solve it; however, as exFAT does not support symlinks, npm packages can't be installed. I tried to solve it using npm install --no-bin-links, but another problem raises:
npm error path /Files/Documents/repos/sistema_academico_backend/node_modules/bcrypt
npm error command failed
npm error command sh -c node-pre-gyp install --fallback-to-build
npm error sh: line 1: node-pre-gyp: command not found
After more researching, I did what this page of the Arch wiki suggests, but this only lead to another problem:
~
❯ sudo npm install --unsafe-perm -g node-inspector
[sudo] password for leo:
npm warn deprecated cryptiles@2.0.5: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm warn deprecated xmldom@0.1.31: Deprecated due to CVE-2021-21366 resolved in 0.5.0
npm warn deprecated boom@2.10.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm warn deprecated sntp@1.0.9: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
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 hoek@2.16.3: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm warn deprecated request@2.81.0: request has been deprecated, see https://github.com/request/request/issues/3142
npm warn deprecated har-validator@4.2.1: this library is no longer supported
npm warn deprecated node-pre-gyp@0.6.39: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
npm warn deprecated hawk@3.1.3: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm warn deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
npm error code 1
npm error path /usr/lib/node_modules/node-inspector/node_modules/v8-debug
npm error command failed
npm error command sh -c node-pre-gyp install --fallback-to-build
npm error make: Entering directory '/usr/lib/node_modules/node-inspector/node_modules/v8-debug/build'
npm error CXX(target) Release/obj.target/debug/src/debug.o
npm error make: Entering directory '/usr/lib/node_modules/node-inspector/node_modules/v8-debug/build'
npm error CXX(target) Release/obj.target/debug/src/debug.o
npm error make: Leaving directory '/usr/lib/node_modules/node-inspector/node_modules/v8-debug/build'
npm error make: Leaving directory '/usr/lib/node_modules/node-inspector/node_modules/v8-debug/build'
npm error Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v1.0.1/node-v120-linux-x64/debug.node --module_name=debug --module_path=/usr/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v1.0.1/node-v120-linux-x64' (1)
npm error node-pre-gyp info it worked if it ends with ok
npm error node-pre-gyp info using node-pre-gyp@0.6.39
npm error node-pre-gyp info using node@21.7.3 | linux | x64
npm error node-pre-gyp info check checked for "/usr/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v1.0.1/node-v120-linux-x64/debug.node" (not found)
npm error node-pre-gyp http GET https://node-inspector.s3.amazonaws.com/debug/v1.0.1/node-v120-linux-x64.tar.gz
npm error (node:9647) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
npm error (Use `node --trace-deprecation ...` to show where the warning was created)
npm error node-pre-gyp http 404 https://node-inspector.s3.amazonaws.com/debug/v1.0.1/node-v120-linux-x64.tar.gz
npm error node-pre-gyp ERR! Tried to download(404): https://node-inspector.s3.amazonaws.com/debug/v1.0.1/node-v120-linux-x64.tar.gz
npm error node-pre-gyp ERR! Pre-built binaries not found for v8-debug@1.0.1 and node@21.7.3 (node-v120 ABI, glibc) (falling back to source compile with node-gyp)
npm error node-pre-gyp http 404 status code downloading tarball https://node-inspector.s3.amazonaws.com/debug/v1.0.1/node-v120-linux-x64.tar.gz
npm error node-pre-gyp ERR! Tried to download(undefined): https://node-inspector.s3.amazonaws.com/debug/v1.0.1/node-v120-linux-x64.tar.gz
npm error node-pre-gyp ERR! Pre-built binaries not found for v8-debug@1.0.1 and node@21.7.3 (node-v120 ABI, glibc) (falling back to source compile with node-gyp)
npm error node-pre-gyp http Connection closed while downloading tarball file
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@10.1.0
npm error gyp info using node@21.7.3 | linux | x64
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@10.1.0
npm error gyp info using node@21.7.3 | linux | x64
npm error gyp info ok
npm error gyp info ok
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@10.1.0
npm error gyp info using node@21.7.3 | linux | x64
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@10.1.0
npm error gyp info using node@21.7.3 | linux | x64
npm error gyp info find Python using Python version 3.12.3 found at "/usr/bin/python3"
npm error gyp info find Python using Python version 3.12.3 found at "/usr/bin/python3"
npm error gyp info spawn /usr/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/usr/lib/node_modules/node-inspector/node_modules/v8-debug/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/root/.cache/node-gyp/21.7.3/include/node/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/21.7.3',
npm error gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/21.7.3/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/usr/lib/node_modules/node-inspector/node_modules/v8-debug',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp info spawn /usr/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/usr/lib/node_modules/node-inspector/node_modules/v8-debug/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/root/.cache/node-gyp/21.7.3/include/node/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/21.7.3',
npm error gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/21.7.3/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/usr/lib/node_modules/node-inspector/node_modules/v8-debug',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp info ok
npm error gyp info ok
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@10.1.0
npm error gyp info using node@21.7.3 | linux | x64
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@10.1.0
npm error gyp info using node@21.7.3 | linux | x64
npm error gyp info spawn make
npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm error gyp info spawn make
npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm error ../src/debug.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE nodex::Debug::Call(Nan::NAN_METHOD_ARGS_TYPE)’:
npm error ../src/debug.cc:41:13: error: ‘v8::Debug’ has not been declared
npm error 41 | v8::Debug::Call(context, fn);
npm error | ^~~~~
npm error ../src/debug.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE nodex::Debug::SendCommand(Nan::NAN_METHOD_ARGS_TYPE)’:
npm error ../src/debug.cc:49:38: error: no matching function for call to ‘v8::String::Value::Value(v8::Local<v8::Value>)’
npm error 49 | String::Value command(info[0]);
npm error | ^
npm error In file included from /root/.cache/node-gyp/21.7.3/include/node/v8-object.h:11,
npm error from /root/.cache/node-gyp/21.7.3/include/node/v8-promise.h:9,
npm error from /root/.cache/node-gyp/21.7.3/include/node/v8-callbacks.h:16,
npm error from /root/.cache/node-gyp/21.7.3/include/node/v8-script.h:15,
npm error from /root/.cache/node-gyp/21.7.3/include/node/v8-debug.h:10,
npm error from ../src/debug.cc:1:
npm error /root/.cache/node-gyp/21.7.3/include/node/v8-primitive.h:536:5: note: candidate: ‘v8::String::Value::Value(v8::Isolate*, v8::Local<v8::Value>)’
npm error 536 | Value(Isolate* isolate, Local<v8::Value> obj);
npm error | ^~~~~
npm error /root/.cache/node-gyp/21.7.3/include/node/v8-primitive.h:536:5: note: candidate expects 2 arguments, 1 provided
npm error ../src/debug.cc:52:38: error: ‘v8::Debug’ has not been declared
npm error 52 | Isolate* debug_isolate = v8::Debug::GetDebugContext(Isolate::GetCurrent())->GetIsolate();
npm error | ^~~~~
npm error ../src/debug.cc:57:13: error: ‘v8::Debug’ has not been declared
npm error 57 | v8::Debug::SendCommand(debug_isolate, *command, command.length());
npm error | ^~~~~
npm error ../src/debug.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE nodex::Debug::RunScript(Nan::NAN_METHOD_ARGS_TYPE)’:
npm error ../src/debug.cc:71:44: error: ‘v8::Debug’ has not been declared
npm error 71 | Local<Context> debug_context = v8::Debug::GetDebugContext(Isolate::GetCurrent());
npm error | ^~~~~
npm error ../src/debug.cc:78:15: error: ‘v8::Debug’ has not been declared
npm error 78 | v8::Debug::GetMirror(info.GetIsolate()->GetCurrentContext(), info[0]);
npm error | ^~~~~
npm error ../src/debug.cc:80:31: error: ‘v8::Debug’ has not been declared
npm error 80 | debug_context = v8::Debug::GetDebugContext(Isolate::GetCurrent());
npm error | ^~~~~
npm error In file included from ../../nan/nan.h:62,
npm error from ../src/debug.cc:2:
npm error ../src/debug.cc: At global scope:
npm error /root/.cache/node-gyp/21.7.3/include/node/node.h:1202:7: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
npm error 1202 | (node::addon_register_func) (regfunc), \
npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error /root/.cache/node-gyp/21.7.3/include/node/node.h:1236:3: note: in expansion of macro ‘NODE_MODULE_X’
npm error 1236 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
npm error | ^~~~~~~~~~~~~
npm error ../src/debug.cc:119:3: note: in expansion of macro ‘NODE_MODULE’
npm error 119 | NODE_MODULE(debug, Initialize)
npm error | ^~~~~~~~~~~
npm error ../src/debug.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE nodex::Debug::Call(Nan::NAN_METHOD_ARGS_TYPE)’:
npm error ../src/debug.cc:41:13: error: ‘v8::Debug’ has not been declared
npm error 41 | v8::Debug::Call(context, fn);
npm error | ^~~~~
npm error ../src/debug.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE nodex::Debug::SendCommand(Nan::NAN_METHOD_ARGS_TYPE)’:
npm error ../src/debug.cc:49:38: error: no matching function for call to ‘v8::String::Value::Value(v8::Local<v8::Value>)’
npm error 49 | String::Value command(info[0]);
npm error | ^
npm error In file included from /root/.cache/node-gyp/21.7.3/include/node/v8-object.h:11,
npm error from /root/.cache/node-gyp/21.7.3/include/node/v8-promise.h:9,
npm error from /root/.cache/node-gyp/21.7.3/include/node/v8-callbacks.h:16,
npm error from /root/.cache/node-gyp/21.7.3/include/node/v8-script.h:15,
npm error from /root/.cache/node-gyp/21.7.3/include/node/v8-debug.h:10,
npm error from ../src/debug.cc:1:
npm error /root/.cache/node-gyp/21.7.3/include/node/v8-primitive.h:536:5: note: candidate: ‘v8::String::Value::Value(v8::Isolate*, v8::Local<v8::Value>)’
npm error 536 | Value(Isolate* isolate, Local<v8::Value> obj);
npm error | ^~~~~
npm error /root/.cache/node-gyp/21.7.3/include/node/v8-primitive.h:536:5: note: candidate expects 2 arguments, 1 provided
npm error ../src/debug.cc:52:38: error: ‘v8::Debug’ has not been declared
npm error 52 | Isolate* debug_isolate = v8::Debug::GetDebugContext(Isolate::GetCurrent())->GetIsolate();
npm error | ^~~~~
npm error ../src/debug.cc:57:13: error: ‘v8::Debug’ has not been declared
npm error 57 | v8::Debug::SendCommand(debug_isolate, *command, command.length());
npm error | ^~~~~
npm error ../src/debug.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE nodex::Debug::RunScript(Nan::NAN_METHOD_ARGS_TYPE)’:
npm error ../src/debug.cc:71:44: error: ‘v8::Debug’ has not been declared
npm error 71 | Local<Context> debug_context = v8::Debug::GetDebugContext(Isolate::GetCurrent());
npm error | ^~~~~
npm error ../src/debug.cc:78:15: error: ‘v8::Debug’ has not been declared
npm error 78 | v8::Debug::GetMirror(info.GetIsolate()->GetCurrentContext(), info[0]);
npm error | ^~~~~
npm error ../src/debug.cc:80:31: error: ‘v8::Debug’ has not been declared
npm error 80 | debug_context = v8::Debug::GetDebugContext(Isolate::GetCurrent());
npm error | ^~~~~
npm error In file included from ../../nan/nan.h:62,
npm error from ../src/debug.cc:2:
npm error ../src/debug.cc: At global scope:
npm error /root/.cache/node-gyp/21.7.3/include/node/node.h:1202:7: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
npm error 1202 | (node::addon_register_func) (regfunc), \
npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error /root/.cache/node-gyp/21.7.3/include/node/node.h:1236:3: note: in expansion of macro ‘NODE_MODULE_X’
npm error 1236 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
npm error | ^~~~~~~~~~~~~
npm error ../src/debug.cc:119:3: note: in expansion of macro ‘NODE_MODULE’
npm error 119 | NODE_MODULE(debug, Initialize)
npm error | ^~~~~~~~~~~
npm error make: *** [debug.target.mk:107: Release/obj.target/debug/src/debug.o] Error 1
npm error make: *** [debug.target.mk:107: Release/obj.target/debug/src/debug.o] Error 1
npm error gyp ERR! build error
npm error gyp ERR! build error
npm error gyp ERR! stack Error: `make` failed with exit code: 2
npm error gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
npm error gyp ERR! stack Error: `make` failed with exit code: 2
npm error gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
npm error gyp ERR! System Linux 6.8.7-arch1-2
npm error gyp ERR! System Linux 6.8.7-arch1-2
npm error gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/usr/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v1.0.1/node-v120-linux-x64/debug.node" "--module_name=debug" "--module_path=/usr/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v1.0.1/node-v120-linux-x64"
npm error gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/usr/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v1.0.1/node-v120-linux-x64/debug.node" "--module_name=debug" "--module_path=/usr/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v1.0.1/node-v120-linux-x64"
npm error gyp ERR! cwd /usr/lib/node_modules/node-inspector/node_modules/v8-debug
npm error gyp ERR! cwd /usr/lib/node_modules/node-inspector/node_modules/v8-debug
npm error gyp ERR! node -v v21.7.3
npm error gyp ERR! node-gyp -v v10.1.0
npm error gyp ERR! node -v v21.7.3
npm error gyp ERR! not ok
npm error gyp ERR! node-gyp -v v10.1.0
npm error gyp ERR! not ok
npm error node-pre-gyp ERR! build error
npm error node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v1.0.1/node-v120-linux-x64/debug.node --module_name=debug --module_path=/usr/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v1.0.1/node-v120-linux-x64' (1)
npm error node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/node-inspector/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
npm error node-pre-gyp ERR! stack at ChildProcess.emit (node:events:519:28)
npm error node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1105:16)
npm error node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:305:5)
npm error node-pre-gyp ERR! System Linux 6.8.7-arch1-2
npm error node-pre-gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-inspector/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
npm error node-pre-gyp ERR! cwd /usr/lib/node_modules/node-inspector/node_modules/v8-debug
npm error node-pre-gyp ERR! node -v v21.7.3
npm error node-pre-gyp ERR! node-pre-gyp -v v0.6.39
npm error node-pre-gyp ERR! not ok
npm error A complete log of this run can be found in: /root/.npm/_logs/2024-04-28T06_17_51_768Z-debug-0.log
The point of all this is that using exFAT brings me more problems than solutions. I want a filesystem that justs works out-of-the-box for my needs: to be able to be used by Windows and Arch in a dual boot environment, to be able to handle large files (since I'll use the partition to store images, videos, repositories, programs, etc).
My first option is going for NTFS. If any of you have experience dealing with this situation, know about possible issues or disadvantages NTFS would bring, know about any other filesystem that would fit me or at least how to overcome all the problems I'm having with exFAT, I'll appreciate it a lot. Thanks.
Offline
Not having tried what you try to do, I can only share my general impression of NTFS, which is good, and I would assume it should work well for you.
As far as sharing files between Windows and Linux on the same machine, I think it's your best option anyway; I don't know of any good software that will let Windows relate well to non-Microsoft file systems, so I think it's better to leave Windows in ignorant bliss inside its bubble, and do what adaptations are needed from the Linux side.
Good reads:
https://wiki.archlinux.org/title/Ntfs
https://en.wikipedia.org/wiki/Compariso … le_systems
That said, I am quite fond of my local file server. Just my old computer reborn - but that's where I put all my disk space, and I can use it from any device in the house. Speed is slower, of course, but flexibility is unmatched. And combined with Zerotier, I can reach it from anywhere.
Offline
Sharing data between platforms is one thing, sharing programs is completely and totally different. Just don't do it.
Offline
Sharing data between platforms is one thing, sharing programs is completely and totally different. Just don't do it.
I'm not planning to share programs, since I only will use those programs on Windows. I was talking about of it more like a place to install those programs.
Offline
Pages: 1