Skip to content
New issue

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

Node gyp ERR #231

Open
Federix320 opened this issue Apr 11, 2021 · 2 comments
Open

Node gyp ERR #231

Federix320 opened this issue Apr 11, 2021 · 2 comments

Comments

@Federix320
Copy link

Hi guyz i have this error, i've tried on mac and now in ubuntu, but i have the same problem, tried different version of node, 8.0 / 8.17 and 8.9.3 too. Someone can help me ?

dtrace-provider@0.8.8 install /home/capo/.nvm/versions/node/v8.17.0/lib/node_modules/@devicefarmer/stf/node_modules/dtrace-provider
node-gyp rebuild || node suppress-error.js

make: ingresso nella directory «/home/capo/.nvm/versions/node/v8.17.0/lib/node_modules/@devicefarmer/stf/node_modules/dtrace-provider/build»
TOUCH Release/obj.target/DTraceProviderStub.stamp
make: uscita dalla directory «/home/capo/.nvm/versions/node/v8.17.0/lib/node_modules/@devicefarmer/stf/node_modules/dtrace-provider/build»

@julusian/jpeg-turbo@0.5.6 install /home/capo/.nvm/versions/node/v8.17.0/lib/node_modules/@devicefarmer/stf/node_modules/@julusian/jpeg-turbo
prebuild-install || cmake-js compile --target jpegturbo

bufferutil@1.3.0 install /home/capo/.nvm/versions/node/v8.17.0/lib/node_modules/@devicefarmer/stf/node_modules/bufferutil
node-gyp rebuild

make: ingresso nella directory «/home/capo/.nvm/versions/node/v8.17.0/lib/node_modules/@devicefarmer/stf/node_modules/bufferutil/build»
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
In file included from ../src/bufferutil.cc:7:
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h: In static member function ‘static void v8::V8::SetAllowCodeGenerationFromStringsCallback(v8::DeprecatedAllowCodeGenerationFromStringsCallback)’:
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h:10304:19: warning: cast between incompatible function types from ‘v8::DeprecatedAllowCodeGenerationFromStringsCallback’ {aka ‘bool ()(v8::Localv8::Context)’} to ‘v8::FreshNewAllowCodeGenerationFromStringsCallback’ {aka ‘bool ()(v8::Localv8::Context, v8::Localv8::String)’} [-Wcast-function-type]
10304 | callback));
| ^
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCPrologueCallback(v8::GCCallback)’:
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h:10349:53: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void ()(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void ()(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
10349 | reinterpret_castIsolate::GCCallback(callback));
| ^
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCEpilogueCallback(v8::GCCallback)’:
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h:10356:53: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void ()(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void ()(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
10356 | reinterpret_castIsolate::GCCallback(callback));
| ^
In file included from ../src/bufferutil.cc:16:
../node_modules/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../node_modules/nan/nan.h:1704:62: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
1704 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
| ^
In file included from ../src/bufferutil.cc:8:
../src/bufferutil.cc: At global scope:
/home/capo/.cache/node-gyp/8.17.0/include/node/node.h:505:43: warning: cast between incompatible function types from ‘void ()(v8::Handlev8::Object)’ {aka ‘void ()(v8::Localv8::Object)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void)’} [-Wcast-function-type]
505 | (node::addon_register_func) (regfunc),
| ^
/home/capo/.cache/node-gyp/8.17.0/include/node/node.h:536:3: note: in expansion of macro ‘NODE_MODULE_X’
536 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
| ^~~~~~~~~~~~~
../src/bufferutil.cc:164:1: note: in expansion of macro ‘NODE_MODULE’
164 | NODE_MODULE(bufferutil, init)
| ^~~~~~~~~~~
In file included from ../src/bufferutil.cc:7:
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfonode::ObjectWrap&)]’:
/home/capo/.cache/node-gyp/8.17.0/include/node/node_object_wrap.h:85:78: required from here
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h:9313:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfonode::ObjectWrap::Callback’ {aka ‘void (
)(const v8::WeakCallbackInfonode::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
9313 | reinterpret_cast(callback), type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P
, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)]’:
../node_modules/nan/nan_object_wrap.h:66:61: required from here
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h:9313:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfoNan::ObjectWrap::Callback’ {aka ‘void (
)(const v8::WeakCallbackInfoNan::ObjectWrap&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
SOLINK_MODULE(target) Release/obj.target/bufferutil.node
COPY Release/bufferutil.node
make: uscita dalla directory «/home/capo/.nvm/versions/node/v8.17.0/lib/node_modules/@devicefarmer/stf/node_modules/bufferutil/build»

utf-8-validate@1.2.2 install /home/capo/.nvm/versions/node/v8.17.0/lib/node_modules/@devicefarmer/stf/node_modules/utf-8-validate
node-gyp rebuild

make: ingresso nella directory «/home/capo/.nvm/versions/node/v8.17.0/lib/node_modules/@devicefarmer/stf/node_modules/utf-8-validate/build»
CXX(target) Release/obj.target/validation/src/validation.o
In file included from ../src/validation.cc:7:
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h: In static member function ‘static void v8::V8::SetAllowCodeGenerationFromStringsCallback(v8::DeprecatedAllowCodeGenerationFromStringsCallback)’:
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h:10304:19: warning: cast between incompatible function types from ‘v8::DeprecatedAllowCodeGenerationFromStringsCallback’ {aka ‘bool ()(v8::Localv8::Context)’} to ‘v8::FreshNewAllowCodeGenerationFromStringsCallback’ {aka ‘bool ()(v8::Localv8::Context, v8::Localv8::String)’} [-Wcast-function-type]
10304 | callback));
| ^
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCPrologueCallback(v8::GCCallback)’:
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h:10349:53: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void ()(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void ()(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
10349 | reinterpret_castIsolate::GCCallback(callback));
| ^
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCEpilogueCallback(v8::GCCallback)’:
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h:10356:53: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void ()(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void ()(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
10356 | reinterpret_castIsolate::GCCallback(callback));
| ^
In file included from ../src/validation.cc:15:
../node_modules/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../node_modules/nan/nan.h:1704:62: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
1704 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
| ^
In file included from ../src/validation.cc:8:
../src/validation.cc: At global scope:
/home/capo/.cache/node-gyp/8.17.0/include/node/node.h:505:43: warning: cast between incompatible function types from ‘void ()(v8::Handlev8::Object)’ {aka ‘void ()(v8::Localv8::Object)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void)’} [-Wcast-function-type]
505 | (node::addon_register_func) (regfunc),
| ^
/home/capo/.cache/node-gyp/8.17.0/include/node/node.h:536:3: note: in expansion of macro ‘NODE_MODULE_X’
536 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
| ^~~~~~~~~~~~~
../src/validation.cc:146:1: note: in expansion of macro ‘NODE_MODULE’
146 | NODE_MODULE(validation, init)
| ^~~~~~~~~~~
In file included from ../src/validation.cc:7:
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfonode::ObjectWrap&)]’:
/home/capo/.cache/node-gyp/8.17.0/include/node/node_object_wrap.h:85:78: required from here
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h:9313:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfonode::ObjectWrap::Callback’ {aka ‘void (
)(const v8::WeakCallbackInfonode::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
9313 | reinterpret_cast(callback), type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P
, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)]’:
../node_modules/nan/nan_object_wrap.h:66:61: required from here
/home/capo/.cache/node-gyp/8.17.0/include/node/v8.h:9313:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfoNan::ObjectWrap::Callback’ {aka ‘void (
)(const v8::WeakCallbackInfoNan::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
../src/validation.cc: In function ‘int is_valid_utf8(size_t, char
)’:
../src/validation.cc:81:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
81 | case 5 : ch += (uint8_t) value[i++]; ch <<= 6;
| ~~~^~~~~
../src/validation.cc:82:7: note: here
82 | case 4 : ch += (uint8_t) value[i++]; ch <<= 6;
| ^~~~
../src/validation.cc:82:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
82 | case 4 : ch += (uint8_t) value[i++]; ch <<= 6;
| ~~~^~~~~
../src/validation.cc:83:7: note: here
83 | case 3 : ch += (uint8_t) value[i++]; ch <<= 6;
| ^~~~
../src/validation.cc:83:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
83 | case 3 : ch += (uint8_t) value[i++]; ch <<= 6;
| ~~~^~~~~
../src/validation.cc:84:7: note: here
84 | case 2 : ch += (uint8_t) value[i++]; ch <<= 6;
| ^~~~
../src/validation.cc:84:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
84 | case 2 : ch += (uint8_t) value[i++]; ch <<= 6;
| ~~~^~~~~
../src/validation.cc:85:7: note: here
85 | case 1 : ch += (uint8_t) value[i++]; ch <<= 6;
| ^~~~
../src/validation.cc:85:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
85 | case 1 : ch += (uint8_t) value[i++]; ch <<= 6;
| ~~~^~~~~
../src/validation.cc:86:7: note: here
86 | case 0 : ch += (uint8_t) value[i];
| ^~~~
../src/validation.cc: In function ‘int isLegalUTF8(const uint8_t*, int)’:
../src/validation.cc:51:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
51 | case 4: if ((a = (--srcptr)) < 0x80 || a > 0xBF) return 0;
| ^~
../src/validation.cc:52:5: note: here
52 | case 3: if ((a = (
--srcptr)) < 0x80 || a > 0xBF) return 0;
| ^~~~
../src/validation.cc:52:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
52 | case 3: if ((a = (--srcptr)) < 0x80 || a > 0xBF) return 0;
| ^~
../src/validation.cc:53:5: note: here
53 | case 2: if ((a = (
--srcptr)) < 0x80 || a > 0xBF) return 0;
| ^~~~
../src/validation.cc:54:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
54 | switch (*source) {
| ^~~~~~
../src/validation.cc:62:5: note: here
62 | case 1: if (*source >= 0x80 && *source < 0xC2) return 0;
| ^~~~
SOLINK_MODULE(target) Release/obj.target/validation.node
COPY Release/validation.node
make: uscita dalla directory «/home/capo/.nvm/versions/node/v8.17.0/lib/node_modules/@devicefarmer/stf/node_modules/utf-8-validate/build»

zmq@2.15.3 install /home/capo/.nvm/versions/node/v8.17.0/lib/node_modules/@devicefarmer/stf/node_modules/zmq
node-gyp rebuild

make: ingresso nella directory «/home/capo/.nvm/versions/node/v8.17.0/lib/node_modules/@devicefarmer/stf/node_modules/zmq/build»
CXX(target) Release/obj.target/zmq/binding.o
../binding.cc:28:10: fatal error: zmq.h: File o directory non esistente
28 | #include <zmq.h>
| ^~~~~~~
compilation terminated.
make: *** [zmq.target.mk:101: Release/obj.target/zmq/binding.o] Errore 1
make: uscita dalla directory «/home/capo/.nvm/versions/node/v8.17.0/lib/node_modules/@devicefarmer/stf/node_modules/zmq/build»
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/capo/.nvm/versions/node/v8.17.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 5.8.0-43-generic
gyp ERR! command "/home/capo/.nvm/versions/node/v8.17.0/bin/node" "/home/capo/.nvm/versions/node/v8.17.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/capo/.nvm/versions/node/v8.17.0/lib/node_modules/@devicefarmer/stf/node_modules/zmq
gyp ERR! node -v v8.17.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm WARN ws@7.4.4 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN ws@7.4.4 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself.
npm WARN ws@7.4.4 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN ws@7.4.4 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zmq@2.15.3 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zmq@2.15.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/capo/.npm/_logs/2021-04-11T18_51_50_807Z-debug.log

What is the issue or idea you have?

Does it only happen on a specific device? Please run adb devices -l and paste the corresponding row.

Please provide the steps to reproduce the issue.

What is the expected behavior?

Do you see errors or warnings in the stf local output? If so, please paste them or the full log here.

Please run stf doctor and paste the output here.

@sandeep-singh-79
Copy link

I am facing similar issues while trying to either use npm to install stf or build from code.
What is the issue you have: getting npm gyp errors during installation of stf on macOS big sure.
Please provide steps to reproduce the issue: I have downloaded all the dependencies, cloned the repo and then run npm install. I get a big error log related to the various npm gyp errors
Do you see errors: npm WARN using --force Recommended protections disabled.
npm WARN ERESOLVE overriding peer dependency
npm WARN Found: webpack@1.15.0
npm WARN node_modules/webpack
npm WARN dev webpack@"^1.12.11" from the root project
npm WARN 3 more (extract-text-webpack-plugin, karma-webpack, sass-loader)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer webpack@"^4.0.0" from webpack-dev-server@3.1.11
npm WARN node_modules/webpack-dev-server
npm WARN dev webpack-dev-server@"^3.1.11" from the root project
npm WARN ERESOLVE overriding peer dependency
npm WARN Found: webpack@1.15.0
npm WARN node_modules/webpack
npm WARN dev webpack@"^1.12.11" from the root project
npm WARN 3 more (extract-text-webpack-plugin, karma-webpack, sass-loader)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer webpack@"^4.0.0" from webpack-dev-middleware@3.4.0
npm WARN node_modules/webpack-dev-server/node_modules/webpack-dev-middleware
npm WARN webpack-dev-middleware@"3.4.0" from webpack-dev-server@3.1.11
npm WARN node_modules/webpack-dev-server
npm WARN ERESOLVE overriding peer dependency
npm WARN Found: webpack@1.15.0
npm WARN node_modules/webpack
npm WARN dev webpack@"^1.12.11" from the root project
npm WARN 3 more (extract-text-webpack-plugin, karma-webpack, sass-loader)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer webpack@"^4.0.0" from webpack-dev-middleware@3.4.0
npm WARN node_modules/webpack-dev-server/node_modules/webpack-dev-middleware
npm WARN webpack-dev-middleware@"3.4.0" from webpack-dev-server@3.1.11
npm WARN node_modules/webpack-dev-server
npm WARN deprecated fsevents@1.2.11: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
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 debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
npm WARN deprecated debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
npm WARN deprecated debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
npm WARN deprecated debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated natives@1.1.0: This module relies on Node.js's internals and will break at some point. Do not use it, and update to graceful-fs@4.x.
npm WARN deprecated xmldom@0.1.19: Deprecated due to CVE-2021-21366 resolved in 0.5.0
npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
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 debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
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 har-validator@2.0.6: this library is no longer supported
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 json3@3.3.2: Please use the native JSON object instead of JSON 3
npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated request@2.88.2: request has been deprecated, see request/request#3142
npm WARN deprecated transformers@2.1.0: Deprecated, use jstransformer
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated constantinople@3.0.2: Please update to at least constantinople 3.1.1
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 ejs@0.8.8: Critical security bugs fixed in 2.5.5
npm WARN deprecated samsam@1.1.2: This package has been deprecated in favour of @sinonjs/samsam
npm WARN deprecated formatio@1.1.1: This package is unmaintained. Use @sinonjs/formatio instead
npm WARN deprecated coa@1.0.3: Please upgrade to 1.0.4 for node 0.10, 0.12, or to 2.0+ for node 4+
npm WARN deprecated jade@1.11.0: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated constantinople@3.1.0: Please update to at least constantinople 3.1.1
npm WARN deprecated flatten@1.0.2: I wrote this module a very long time ago; you should use something else.
npm WARN deprecated clone@1.0.2: XSS vulnerability fixed in v1.0.3
npm WARN deprecated mkdirp@0.5.0: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated is-buffer@1.1.5: This version of 'is-buffer' is out-of-date. You must update to v1.1.6 or newer
npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
npm WARN deprecated chokidar@1.7.0: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated xmldom@0.1.27: Deprecated due to CVE-2021-21366 resolved in 0.5.0
npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated circular-json@0.3.1: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated highlight.js@9.15.10: Version no longer supported. Upgrade to @latest
npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated buffer@5.0.6: This version of 'buffer' is out-of-date. You must update to v5.0.8 or newer
npm WARN deprecated request@2.79.0: request has been deprecated, see request/request#3142
npm WARN deprecated phantomjs-prebuilt@2.1.14: this package is now deprecated
npm WARN deprecated request@2.81.0: request has been deprecated, see request/request#3142
npm WARN deprecated core-js@2.6.9: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated har-validator@4.2.1: this library is no longer supported
npm WARN deprecated buffer@4.9.1: This version of 'buffer' is out-of-date. You must update to v4.9.2 or newer
npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated gulp-protractor@3.0.0: major security issue dominictarr/event-stream#116 issue in v4.1.1
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated gulp-util@3.0.7: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated extract-text-webpack-plugin@1.0.1: Deprecated. Please use https://github.com/webpack-contrib/mini-css-extract-plugin
npm WARN deprecated bower@1.8.8: We don't recommend using Bower for new projects. Please consider Yarn and Webpack or Parcel. You can read how to migrate legacy project here: https://bower.io/blog/2017/how-to-migrate-away-from-bower/
npm WARN deprecated @slack/client@3.10.0: v3.x and lower are no longer supported. see migration guide: https://github.com/slackapi/node-slack-sdk/wiki/Migration-Guide-for-v4
npm WARN deprecated buffer@4.9.1: This version of 'buffer' is out-of-date. You must update to v4.9.2 or newer
npm ERR! code 1
npm ERR! path /Users/sandeepsingh/Documents/projects/devicefarmer_stf/stf/node_modules/utf-8-validate
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! CXX(target) Release/obj.target/validation/src/validation.o
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@3.8.0
npm ERR! gyp info using node@16.0.0 | darwin | x64
npm ERR! gyp http GET https://nodejs.org/download/release/v16.0.0/node-v16.0.0-headers.tar.gz
npm ERR! gyp http 200 https://nodejs.org/download/release/v16.0.0/node-v16.0.0-headers.tar.gz
npm ERR! gyp http GET https://nodejs.org/download/release/v16.0.0/SHASUMS256.txt
npm ERR! gyp http 200 https://nodejs.org/download/release/v16.0.0/SHASUMS256.txt
npm ERR! (node:40201) [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/python2
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/Users/sandeepsingh/Documents/projects/devicefarmer_stf/stf/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 '/Users/sandeepsingh/Documents/projects/devicefarmer_stf/stf/node_modules/utf-8-validate/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/sandeepsingh/Documents/projects/devicefarmer_stf/stf/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/sandeepsingh/.node-gyp/16.0.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=/Users/sandeepsingh/.node-gyp/16.0.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/Users/sandeepsingh/Documents/projects/devicefarmer_stf/stf/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/sandeepsingh/.node-gyp/16.0.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/sandeepsingh/Documents/projects/devicefarmer_stf/stf/node_modules/utf-8-validate',
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/validation.cc:7:
npm ERR! In file included from /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:30:
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8-internal.h:452:38: error: no template named 'remove_cv_t' in namespace 'std'; did you mean 'remove_cv'?
npm ERR! !std::is_same<Data, std::remove_cv_t>::value>::Perform(data);
npm ERR! ~~~~~^~~~~~~~~~~
npm ERR! remove_cv
npm ERR! /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:697:50: note: 'remove_cv' declared here
npm ERR! template struct LIBCPP_TEMPLATE_VIS remove_cv
npm ERR! ^
npm ERR! In file included from ../src/validation.cc:15:
npm ERR! In file included from ../node_modules/nan/nan.h:190:
npm ERR! ../node_modules/nan/nan_maybe_43_inl.h:88:15: error: no member named 'ForceSet' in 'v8::Object'
npm ERR! return obj->ForceSet(GetCurrentContext(), key, value, attribs);
npm ERR! ~~~ ^
npm ERR! In file included from ../src/validation.cc:15:
npm ERR! In file included from ../node_modules/nan/nan.h:195:
npm ERR! In file included from ../node_modules/nan/nan_converters.h:59:
npm ERR! ../node_modules/nan/nan_converters_43_inl.h:18:1: error: no viable conversion from 'v8::Localv8::Context' to 'v8::Isolate '
npm ERR! X(Boolean)
npm ERR! ^~~~~~~~~~
npm ERR! ../node_modules/nan/nan_converters_43_inl.h:15:26: note: expanded from macro 'X'
npm ERR! return val->To ## TYPE(GetCurrentContext());
npm ERR! ^~~~~~~~~~~~~~~~~~~
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:3057:37: note: passing argument to parameter 'isolate' here
npm ERR! Local ToBoolean(Isolate
isolate) const;
npm ERR! ^
npm ERR! In file included from ../src/validation.cc:15:
npm ERR! In file included from ../node_modules/nan/nan.h:195:
npm ERR! In file included from ../node_modules/nan/nan_converters.h:59:
npm ERR! ../node_modules/nan/nan_converters_43_inl.h:34:1: error: no viable conversion from 'v8::Localv8::Context' to 'v8::Isolate '
npm ERR! X(bool, Boolean)
npm ERR! ^~~~~~~~~~~~~~~~
npm ERR! ../node_modules/nan/nan_converters_43_inl.h:31:29: note: expanded from macro 'X'
npm ERR! return val->NAME ## Value(GetCurrentContext());
npm ERR! ^~~~~~~~~~~~~~~~~~~
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:3067:30: note: passing argument to parameter 'isolate' here
npm ERR! bool BooleanValue(Isolate
isolate) const;
npm ERR! ^
npm ERR! In file included from ../src/validation.cc:15:
npm ERR! In file included from ../node_modules/nan/nan.h:196:
npm ERR! In file included from ../node_modules/nan/nan_new.h:189:
npm ERR! ../node_modules/nan/nan_implementation_12_inl.h:107:42: error: no viable conversion from 'v8::Isolate *' to 'Localv8::Context'
npm ERR! return scope.Escape(v8::Function::New( isolate
npm ERR! ^~~~~~~
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:199:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::Isolate *' to 'const v8::Localv8::Context &' for 1st argument
npm ERR! class Local {
npm ERR! ^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:199:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'v8::Isolate *' to 'v8::Localv8::Context &&' for 1st argument
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:203:13: note: candidate template ignored: could not match 'Local' against 'v8::Isolate '
npm ERR! V8_INLINE Local(Local that)
npm ERR! ^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:4717:22: note: passing argument to parameter 'context' here
npm ERR! Local context, FunctionCallback callback,
npm ERR! ^
npm ERR! In file included from ../src/validation.cc:15:
npm ERR! In file included from ../node_modules/nan/nan.h:196:
npm ERR! In file included from ../node_modules/nan/nan_new.h:189:
npm ERR! ../node_modules/nan/nan_implementation_12_inl.h:345:37: error: too few arguments to function call, expected 2, have 1
npm ERR! return v8::StringObject::New(value).Asv8::StringObject();
npm ERR! ~~~~~~~~~~~~~~~~~~~~~ ^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:6153:3: note: 'New' declared here
npm ERR! static Local New(Isolate
isolate, Local value);
npm ERR! ^
npm ERR! In file included from ../src/validation.cc:15:
npm ERR! ../node_modules/nan/nan.h:816:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm ERR! return node::MakeCallback(
npm ERR! ^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/node.h:183:1: note: 'MakeCallback' has been explicitly marked deprecated here
npm ERR! NODE_DEPRECATED("Use MakeCallback(..., async_context)",
npm ERR! ^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/node.h:101:20: note: expanded from macro 'NODE_DEPRECATED'
npm ERR! attribute((deprecated(message))) declarator
npm ERR! ^
npm ERR! In file included from ../src/validation.cc:15:
npm ERR! ../node_modules/nan/nan.h:830:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm ERR! return node::MakeCallback(
npm ERR! ^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/node.h:176:1: note: 'MakeCallback' has been explicitly marked deprecated here
npm ERR! NODE_DEPRECATED("Use MakeCallback(..., async_context)",
npm ERR! ^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/node.h:101:20: note: expanded from macro 'NODE_DEPRECATED'
npm ERR! attribute((deprecated(message))) declarator
npm ERR! ^
npm ERR! In file included from ../src/validation.cc:15:
npm ERR! ../node_modules/nan/nan.h:844:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm ERR! return node::MakeCallback(
npm ERR! ^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/node.h:169:1: note: 'MakeCallback' has been explicitly marked deprecated here
npm ERR! NODE_DEPRECATED("Use MakeCallback(..., async_context)",
npm ERR! ^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/node.h:101:20: note: expanded from macro 'NODE_DEPRECATED'
npm ERR! attribute((deprecated(message))) declarator
npm ERR! ^
npm ERR! In file included from ../src/validation.cc:15:
npm ERR! ../node_modules/nan/nan.h:890:53: error: too few arguments to function call, single argument 'context' was not specified
npm ERR! v8::Localv8::String string = from->ToString();
npm ERR! ~~~~~~~~~~~~~~ ^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:3019:3: note: 'ToString' declared here
npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal ToString(
npm ERR! ^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8config.h:452:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
npm ERR! #define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
npm ERR! ^
npm ERR! In file included from ../src/validation.cc:15:
npm ERR! ../node_modules/nan/nan.h:900:37: error: cannot initialize a parameter of type 'v8::Isolate *' with an lvalue of type 'char *'
npm ERR! length
= string->WriteUtf8(str_, static_cast(len), 0, flags);
npm ERR! ^~~~
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:3248:26: note: passing argument to parameter 'isolate' here
npm ERR! int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
npm ERR! ^
npm ERR! In file included from ../src/validation.cc:15:
npm ERR! ../node_modules/nan/nan.h:1447:31: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm ERR! return scope.Escape(node::MakeCallback(
npm ERR! ^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/node.h:183:1: note: 'MakeCallback' has been explicitly marked deprecated here
npm ERR! NODE_DEPRECATED("Use MakeCallback(..., async_context)",
npm ERR! ^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/node.h:101:20: note: expanded from macro 'NODE_DEPRECATED'
npm ERR! attribute((deprecated(message))) declarator
npm ERR! ^
npm ERR! In file included from ../src/validation.cc:15:
npm ERR! ../node_modules/nan/nan.h:1507:28: error: no matching member function for call to 'Set'
npm ERR! New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
npm ERR! ~~~~~~~~~~~~~~~~~~~~~~~^~~
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:3926:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR! V8_WARN_UNUSED_RESULT Maybe Set(Local context,
npm ERR! ^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:3929:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR! V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index,
npm ERR! ^
npm ERR! In file included from ../src/validation.cc:15:
npm ERR! ../node_modules/nan/nan.h:1513:28: error: no matching member function for call to 'Set'
npm ERR! New(persistentHandle)->Set(key, value);
npm ERR! ~~~~~~~~~~~~~~~~~~~~~~~^~~
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:3926:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR! V8_WARN_UNUSED_RESULT Maybe Set(Local context,
npm ERR! ^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:3929:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR! V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index,
npm ERR! ^
npm ERR! In file included from ../src/validation.cc:15:
npm ERR! ../node_modules/nan/nan.h:1519:28: error: no matching member function for call to 'Set'
npm ERR! New(persistentHandle)->Set(index, value);
npm ERR! ~~~~~~~~~~~~~~~~~~~~~~~^~~
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:3926:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR! V8_WARN_UNUSED_RESULT Maybe Set(Local context,
npm ERR! ^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:3929:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR! V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index,
npm ERR! ^
npm ERR! In file included from ../src/validation.cc:15:
npm ERR! ../node_modules/nan/nan.h:1525:32: error: no matching member function for call to 'Get'
npm ERR! New(persistentHandle)->Get(New(key).ToLocalChecked()));
npm ERR! ~~~~~~~~~~~~~~~~~~~~~~~^~~
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:3973:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
npm ERR! ^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:3976:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
npm ERR! ^
npm ERR! In file included from ../src/validation.cc:15:
npm ERR! ../node_modules/nan/nan.h:1531:48: error: no matching member function for call to 'Get'
npm ERR! return scope.Escape(New(persistentHandle)->Get(key));
npm ERR! ~~~~~~~~~~~~~~~~~~~~~~~^~~
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:3973:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
npm ERR! ^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:3976:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
npm ERR! ^
npm ERR! In file included from ../src/validation.cc:15:
npm ERR! ../node_modules/nan/nan.h:1536:48: error: no matching member function for call to 'Get'
npm ERR! return scope.Escape(New(persistentHandle)->Get(index));
npm ERR! ~~~~~~~~~~~~~~~~~~~~~~~^~~
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:3973:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
npm ERR! ^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:3976:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
npm ERR! ^
npm ERR! In file included from ../src/validation.cc:15:
npm ERR! In file included from ../node_modules/nan/nan.h:2190:
npm ERR! ../node_modules/nan/nan_object_wrap.h:24:25: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraitsv8::Object >'
npm ERR! assert(persistent().IsNearDeath());
npm ERR! ~~~~~~~~~~~~ ^
npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/assert.h:93:25: note: expanded from macro 'assert'
npm ERR! (__builtin_expect(!(e), 0) ? _assert_rtn(func, FILE, LINE, #e) : (void)0)
npm ERR! ^
npm ERR! In file included from ../src/validation.cc:15:
npm ERR! In file included from ../node_modules/nan/nan.h:2190:
npm ERR! ../node_modules/nan/nan_object_wrap.h:67:18: error: no member named 'MarkIndependent' in 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraitsv8::Object >'
npm ERR! persistent().MarkIndependent();
npm ERR! ~~~~~~~~~~~~ ^
npm ERR! ../node_modules/nan/nan_object_wrap.h:124:26: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraitsv8::Object >'
npm ERR! assert(wrap->handle
.IsNearDeath());
npm ERR! ~~~~~~~~~~~~~ ^
npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/assert.h:93:25: note: expanded from macro 'assert'
npm ERR! (__builtin_expect(!(e), 0) ? __assert_rtn(func, FILE, LINE, #e) : (void)0)
npm ERR! ^
npm ERR! In file included from ../src/validation.cc:15:
npm ERR! In file included from ../node_modules/nan/nan.h:2270:
npm ERR! ../node_modules/nan/nan_typedarray_contents.h:33:43: warning: 'GetContents' is deprecated: Use GetBackingStore. See http://crbug.com/v8/9908. [-Wdeprecated-declarations]
npm ERR! data = static_cast<char*>(buffer->GetContents().Data()) + byte_offset;
npm ERR! ^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:5571:3: note: 'GetContents' has been explicitly marked deprecated here
npm ERR! V8_DEPRECATED("Use GetBackingStore. See http://crbug.com/v8/9908.")
npm ERR! ^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8config.h:415:35: note: expanded from macro 'V8_DEPRECATED'
npm ERR! # define V8_DEPRECATED(message) [[deprecated(message)]]
npm ERR! ^
npm ERR! ../src/validation.cc:106:30: error: no template named 'Handle' in namespace 'v8'
npm ERR! static void Initialize(v8::Handlev8::Object target)
npm ERR! ~~~~^
npm ERR! ../src/validation.cc:112:86: error: too few arguments to function call, single argument 'context' was not specified
npm ERR! Nan::Set(target, Nan::New("Validation").ToLocalChecked(), t->GetFunction());
npm ERR! ~~~~~~~~~~~~~~ ^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8.h:6750:3: note: 'GetFunction' declared here
npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
npm ERR! ^
npm ERR! /Users/sandeepsingh/.node-gyp/16.0.0/include/node/v8config.h:452:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
npm ERR! #define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
npm ERR! ^
npm ERR! fatal error: too many errors emitted, stopping now [-ferror-limit=]
npm ERR! 5 warnings and 20 errors generated.
npm ERR! make: *** [Release/obj.target/validation/src/validation.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 (/Users/sandeepsingh/Documents/projects/devicefarmer_stf/stf/node_modules/node-gyp/lib/build.js:262:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:365:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Darwin 20.3.0
npm ERR! gyp ERR! command "/usr/local/Cellar/node/16.0.0_1/bin/node" "/Users/sandeepsingh/Documents/projects/devicefarmer_stf/stf/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /Users/sandeepsingh/Documents/projects/devicefarmer_stf/stf/node_modules/utf-8-validate
npm ERR! gyp ERR! node -v v16.0.0
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok

@xante8088
Copy link

I was able to get it to install on MacOS by using sudo npm install -g @devicefarmer/stf --unsafe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants