We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Caution
On Readme.md no system-requirements listen!
Readme.md
How i can install the module?
Versions:
OS: Debian GNU/Linux 12 (bookworm) Node: 23.5.0 NPM: 11.0.0
1️⃣ Output:
root@hostname:/opt/Server# npm install v8-sandbox --save npm error code 1 npm error path /opt/Server/node_modules/v8-sandbox npm error command failed npm error command sh -c node-gyp rebuild npm error make: Entering directory '/opt/Server/node_modules/v8-sandbox/build' npm error CXX(target) Release/obj.target/sandbox/src/addon.o npm error make: Leaving directory '/opt/Server/node_modules/v8-sandbox/build' npm error gyp info it worked if it ends with ok npm error gyp info using [email protected] npm error gyp info using [email protected] | linux | x64 npm error gyp info find Python using Python version 3.11.2 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 '/opt/Server/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 '/opt/Server/node_modules/v8-sandbox/build/config.gypi', npm error gyp info spawn args '-I', npm error gyp info spawn args '/opt/Server/node_modules/node-gyp/addon.gypi', npm error gyp info spawn args '-I', npm error gyp info spawn args '/root/.cache/node-gyp/23.5.0/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/23.5.0', npm error gyp info spawn args '-Dnode_gyp_dir=/opt/Server/node_modules/node-gyp', npm error gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/23.5.0/<(target_arch)/node.lib', npm error gyp info spawn args '-Dmodule_root_dir=/opt/Server/node_modules/v8-sandbox', 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 make npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm error make: g++: No such file or directory npm error make: *** [sandbox.target.mk:112: Release/obj.target/sandbox/src/addon.o] Error 127 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> (/opt/Server/node_modules/node-gyp/lib/build.js:216:23) npm error gyp ERR! System Linux 6.1.0 npm error gyp ERR! command "/root/.nvm/versions/node/v23.5.0/bin/node" "/opt/Server/node_modules/.bin/node-gyp" "rebuild" npm error gyp ERR! cwd /opt/Server/node_modules/v8-sandbox npm error gyp ERR! node -v v23.5.0 npm error gyp ERR! node-gyp -v v10.3.1 npm error gyp ERR! not ok npm error A complete log of this run can be found in: /root/.npm/_logs/2024-12-31T15_16_43_515Z-debug-0.log
After looking on 1️⃣ Output, i've seen, that g++ not found.
1️⃣ Output
g++
Also i have installed the build-essential package in Debian:
build-essential
Debian
apt install build-essential
After that, i've got following Errors:
2️⃣ Output:
npm error code 1 npm error path /opt/Server/node_modules/v8-sandbox npm error command failed npm error command sh -c node-gyp rebuild npm error make: Entering directory '/opt/Server/node_modules/v8-sandbox/build' npm error CXX(target) Release/obj.target/sandbox/src/addon.o npm error CXX(target) Release/obj.target/sandbox/src/baton.o npm error CXX(target) Release/obj.target/sandbox/src/sandbox.o npm error make: Leaving directory '/opt/Server/node_modules/v8-sandbox/build' npm error gyp info it worked if it ends with ok npm error gyp info using [email protected] npm error gyp info using [email protected] | linux | x64 npm error gyp info find Python using Python version 3.11.2 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 '/opt/Server/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 '/opt/Server/node_modules/v8-sandbox/build/config.gypi', npm error gyp info spawn args '-I', npm error gyp info spawn args '/opt/Server/node_modules/node-gyp/addon.gypi', npm error gyp info spawn args '-I', npm error gyp info spawn args '/root/.cache/node-gyp/23.5.0/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/23.5.0', npm error gyp info spawn args '-Dnode_gyp_dir=/opt/Server/node_modules/node-gyp', npm error gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/23.5.0/<(target_arch)/node.lib', npm error gyp info spawn args '-Dmodule_root_dir=/opt/Server/node_modules/v8-sandbox', 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 make npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm error In file included from ../../nan/nan.h:62, npm error from ../src/sandbox.h:4, npm error from ../src/addon.cc:1: npm error /root/.cache/node-gyp/23.5.0/include/node/node.h:1226: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 1226 | (node::addon_register_func) (regfunc), \ npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm error /root/.cache/node-gyp/23.5.0/include/node/node.h:1260:3: note: in expansion of macro 'NODE_MODULE_X' npm error 1260 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) npm error | ^~~~~~~~~~~~~ npm error ../src/addon.cc:9:1: note: in expansion of macro 'NODE_MODULE' npm error 9 | NODE_MODULE(sandbox, Init) npm error | ^~~~~~~~~~~ npm error In file included from ../src/sandbox.cc:2: npm error ../src/common.h:41:85: warning: backslash-newline at end of file npm error 41 | #define NODE_ARG_BOOLEAN_OPTIONAL(num, name) \ npm error | npm error ../src/sandbox.cc: In member function 'void Sandbox::Execute(int, const char*)': npm error ../src/sandbox.cc:237:81: error: no matching function for call to 'v8::ScriptOrigin::ScriptOrigin(v8::Isolate*, v8::Local<v8::String>)' npm error 237 | ScriptOrigin origin(Isolate::GetCurrent(), Nan::New("script").ToLocalChecked()); npm error | ^ npm error In file included from /root/.cache/node-gyp/23.5.0/include/node/v8-script.h:20, npm error from /root/.cache/node-gyp/23.5.0/include/node/v8-debug.h:10, npm error from /root/.cache/node-gyp/23.5.0/include/node/v8-isolate.h:19, npm error from /root/.cache/node-gyp/23.5.0/include/node/v8-snapshot.h:9, npm error from /root/.cache/node-gyp/23.5.0/include/node/v8-context.h:15, npm error from /root/.cache/node-gyp/23.5.0/include/node/v8.h:26, npm error from /root/.cache/node-gyp/23.5.0/include/node/node.h:73, npm error from ../../nan/nan.h:62, npm error from ../src/sandbox.h:4, npm error from ../src/sandbox.cc:1: npm error /root/.cache/node-gyp/23.5.0/include/node/v8-message.h:64:13: note: candidate: 'v8::ScriptOrigin::ScriptOrigin(v8::Local<v8::Value>, int, int, bool, int, v8::Local<v8::Value>, bool, bool, bool, v8::Local<v8::Data>)' npm error 64 | V8_INLINE ScriptOrigin(Local<Value> resource_name, npm error | ^~~~~~~~~~~~ npm error /root/.cache/node-gyp/23.5.0/include/node/v8-message.h:64:39: note: no known conversion for argument 1 from 'v8::Isolate*' to 'v8::Local<v8::Value>' npm error 64 | V8_INLINE ScriptOrigin(Local<Value> resource_name, npm error | ~~~~~~~~~~~~~^~~~~~~~~~~~~ npm error /root/.cache/node-gyp/23.5.0/include/node/v8-message.h:62:17: note: candidate: 'constexpr v8::ScriptOrigin::ScriptOrigin(const v8::ScriptOrigin&)' npm error 62 | class V8_EXPORT ScriptOrigin { npm error | ^~~~~~~~~~~~ npm error /root/.cache/node-gyp/23.5.0/include/node/v8-message.h:62:17: note: candidate expects 1 argument, 2 provided npm error /root/.cache/node-gyp/23.5.0/include/node/v8-message.h:62:17: note: candidate: 'constexpr v8::ScriptOrigin::ScriptOrigin(v8::ScriptOrigin&&)' npm error /root/.cache/node-gyp/23.5.0/include/node/v8-message.h:62:17: note: candidate expects 1 argument, 2 provided npm error ../src/sandbox.cc:244:39: warning: ignoring return value of 'v8::MaybeLocal<v8::Value> v8::Script::Run(v8::Local<v8::Context>)', declared with attribute 'warn_unused_result' [-Wunused-result] npm error 244 | (void)script.ToLocalChecked()->Run(context); npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ npm error /root/.cache/node-gyp/23.5.0/include/node/v8-script.h:351:43: note: declared here npm error 351 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Run(Local<Context> context); npm error | ^~~ npm error In file included from ../../nan/nan_callbacks.h:123, npm error from ../../nan/nan.h:182: npm error ../../nan/nan_callbacks_12_inl.h: In instantiation of 'v8::Local<v8::Object> Nan::FunctionCallbackInfo<T>::Holder() const [with T = v8::Value]': npm error ../src/sandbox.cc:82:61: required from here npm error ../../nan/nan_callbacks_12_inl.h:112:68: warning: 'v8::Local<v8::Object> v8::FunctionCallbackInfo<F>::Holder() const [with T = v8::Value]' is deprecated: V8 will stop providing access to hidden prototype (i.e. JSGlobalObject). Use This() instead. \nDO NOT try to workaround this by accessing JSGlobalObject via v8::Object::GetPrototype() - it'll be deprecated soon too. \nSee http://crbug.com/333672197. [-Wdeprecated-declarations] npm error 112 | inline v8::Local<v8::Object> Holder() const { return info_.Holder(); } npm error | ~~~~~~~~~~~~^~ npm error In file included from /root/.cache/node-gyp/23.5.0/include/node/v8-isolate.h:22: npm error /root/.cache/node-gyp/23.5.0/include/node/v8-function-callback.h:658:15: note: declared here npm error 658 | Local<Object> FunctionCallbackInfo<T>::Holder() const { npm error | ^~~~~~~~~~~~~~~~~~~~~~~ npm error make: *** [sandbox.target.mk:112: Release/obj.target/sandbox/src/sandbox.o] Error 1 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> (/opt/Server/node_modules/node-gyp/lib/build.js:216:23) npm error gyp ERR! System Linux 6.1.0 npm error gyp ERR! command "/root/.nvm/versions/node/v23.5.0/bin/node" "/opt/Server/node_modules/.bin/node-gyp" "rebuild" npm error gyp ERR! cwd /opt/Server/node_modules/v8-sandbox npm error gyp ERR! node -v v23.5.0 npm error gyp ERR! node-gyp -v v10.3.1 npm error gyp ERR! not ok npm error A complete log of this run can be found in: /root/.npm/_logs/2024-12-31T15_22_22_520Z-debug-0.log
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Caution
On
Readme.md
no system-requirements listen!How i can install the module?
Versions:
1️⃣ Output:
After looking on
1️⃣ Output
, i've seen, thatg++
not found.Also i have installed the
build-essential
package inDebian
:After that, i've got following Errors:
2️⃣ Output:
The text was updated successfully, but these errors were encountered: