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

Cannot install globally aragon/cli #1900

Open
x88 opened this issue Nov 24, 2021 · 10 comments
Open

Cannot install globally aragon/cli #1900

x88 opened this issue Nov 24, 2021 · 10 comments

Comments

@x88
Copy link

x88 commented Nov 24, 2021

🐛 Bug Report

Cannot install globally with command npm install -g @aragon/cli, according manual.

Have you read the Contributing Guidelines on issues?

  • [ x] Yes

To Reproduce

  1. Run command npm install -g @aragon/cli
  2. See error
npm ERR! code 1
npm ERR! path /home/my-user/.npm-global/lib/node_modules/@aragon/cli/node_modules/@aragon/toolkit/node_modules/@web3-js/websocket
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! make: Entering directory '/home/my-user/.npm-global/lib/node_modules/@aragon/cli/node_modules/@aragon/toolkit/node_modules/@web3-js/websocket/build'
npm ERR!   CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
npm ERR! make: Leaving directory '/home/my-user/.npm-global/lib/node_modules/@aragon/cli/node_modules/@aragon/toolkit/node_modules/@web3-js/websocket/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | linux | x64
npm ERR! gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3"
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/usr/local/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/my-user/.npm-global/lib/node_modules/@aragon/cli/node_modules/@aragon/toolkit/node_modules/@web3-js/websocket/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/my-user/.cache/node-gyp/12.22.7/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/home/my-user/.cache/node-gyp/12.22.7',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/home/my-user/.cache/node-gyp/12.22.7/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/home/my-user/.npm-global/lib/node_modules/@aragon/cli/node_modules/@aragon/toolkit/node_modules/@web3-js/websocket',
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/bufferutil.cc:17:
npm ERR! ../../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
npm ERR! ../../../nan/nan.h:2298: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]
npm ERR!  2298 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
npm ERR!       |                                                              ^
npm ERR! ../src/bufferutil.cc: In static member function ‘static void BufferUtil::Initialize(v8::Local<v8::Object>)’:
npm ERR! ../src/bufferutil.cc:34:86: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
npm ERR!    34 |     Nan::Set(target, Nan::New<String>("BufferUtil").ToLocalChecked(), t->GetFunction());
npm ERR!       |                                                                                      ^
npm ERR! In file included from ../src/bufferutil.cc:8:
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:6126:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’
npm ERR!  6126 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
npm ERR!       |                                              ^~~~~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:6126:46: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/bufferutil.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BufferUtil::Merge(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../src/bufferutil.cc:50:49: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    50 |     Local<Object> bufferObj = info[0]->ToObject();
npm ERR!       |                                                 ^
npm ERR! In file included from ../src/bufferutil.cc:8:
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2672:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR!  2672 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2672:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from /home/my-user/.cache/node-gyp/12.22.7/include/node/v8-internal.h:14,
npm ERR!                  from /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:27,
npm ERR!                  from ../src/bufferutil.cc:8:
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2686:31: note: candidate: ‘v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const’
npm ERR!  2686 |                 Local<Object> ToObject(Isolate* isolate) const);
npm ERR!       |                               ^~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2686:31: note:   candidate expects 1 argument, 0 provided
npm ERR!  2686 |                 Local<Object> ToObject(Isolate* isolate) const);
npm ERR!       |                               ^~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! ../src/bufferutil.cc:57:39: warning: ‘v8::Local<v8::Value> v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
npm ERR!    57 |       Local<Object> src = array->Get(i)->ToObject();
npm ERR!       |                                       ^
npm ERR! In file included from /home/my-user/.cache/node-gyp/12.22.7/include/node/v8-internal.h:14,
npm ERR!                  from /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:27,
npm ERR!                  from ../src/bufferutil.cc:8:
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:3557:51: note: declared here
npm ERR!  3557 |   V8_DEPRECATED("Use maybe version", Local<Value> Get(uint32_t index));
npm ERR!       |                                                   ^~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! ../src/bufferutil.cc:57:51: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    57 |       Local<Object> src = array->Get(i)->ToObject();
npm ERR!       |                                                   ^
npm ERR! In file included from ../src/bufferutil.cc:8:
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2672:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR!  2672 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2672:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from /home/my-user/.cache/node-gyp/12.22.7/include/node/v8-internal.h:14,
npm ERR!                  from /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:27,
npm ERR!                  from ../src/bufferutil.cc:8:
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2686:31: note: candidate: ‘v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const’
npm ERR!  2686 |                 Local<Object> ToObject(Isolate* isolate) const);
npm ERR!       |                               ^~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2686:31: note:   candidate expects 1 argument, 0 provided
npm ERR!  2686 |                 Local<Object> ToObject(Isolate* isolate) const);
npm ERR!       |                               ^~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! ../src/bufferutil.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BufferUtil::Unmask(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../src/bufferutil.cc:68:50: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    68 |     Local<Object> buffer_obj = info[0]->ToObject();
npm ERR!       |                                                  ^
npm ERR! In file included from ../src/bufferutil.cc:8:
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2672:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR!  2672 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2672:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from /home/my-user/.cache/node-gyp/12.22.7/include/node/v8-internal.h:14,
npm ERR!                  from /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:27,
npm ERR!                  from ../src/bufferutil.cc:8:
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2686:31: note: candidate: ‘v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const’
npm ERR!  2686 |                 Local<Object> ToObject(Isolate* isolate) const);
npm ERR!       |                               ^~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2686:31: note:   candidate expects 1 argument, 0 provided
npm ERR!  2686 |                 Local<Object> ToObject(Isolate* isolate) const);
npm ERR!       |                               ^~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! ../src/bufferutil.cc:70:48: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    70 |     Local<Object> mask_obj = info[1]->ToObject();
npm ERR!       |                                                ^
npm ERR! In file included from ../src/bufferutil.cc:8:
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2672:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR!  2672 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2672:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from /home/my-user/.cache/node-gyp/12.22.7/include/node/v8-internal.h:14,
npm ERR!                  from /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:27,
npm ERR!                  from ../src/bufferutil.cc:8:
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2686:31: note: candidate: ‘v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const’
npm ERR!  2686 |                 Local<Object> ToObject(Isolate* isolate) const);
npm ERR!       |                               ^~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2686:31: note:   candidate expects 1 argument, 0 provided
npm ERR!  2686 |                 Local<Object> ToObject(Isolate* isolate) const);
npm ERR!       |                               ^~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! ../src/bufferutil.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BufferUtil::Mask(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../src/bufferutil.cc:89:50: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    89 |     Local<Object> buffer_obj = info[0]->ToObject();
npm ERR!       |                                                  ^
npm ERR! In file included from ../src/bufferutil.cc:8:
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2672:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR!  2672 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2672:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from /home/my-user/.cache/node-gyp/12.22.7/include/node/v8-internal.h:14,
npm ERR!                  from /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:27,
npm ERR!                  from ../src/bufferutil.cc:8:
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2686:31: note: candidate: ‘v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const’
npm ERR!  2686 |                 Local<Object> ToObject(Isolate* isolate) const);
npm ERR!       |                               ^~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2686:31: note:   candidate expects 1 argument, 0 provided
npm ERR!  2686 |                 Local<Object> ToObject(Isolate* isolate) const);
npm ERR!       |                               ^~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! ../src/bufferutil.cc:90:48: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    90 |     Local<Object> mask_obj = info[1]->ToObject();
npm ERR!       |                                                ^
npm ERR! In file included from ../src/bufferutil.cc:8:
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2672:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR!  2672 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2672:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from /home/my-user/.cache/node-gyp/12.22.7/include/node/v8-internal.h:14,
npm ERR!                  from /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:27,
npm ERR!                  from ../src/bufferutil.cc:8:
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2686:31: note: candidate: ‘v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const’
npm ERR!  2686 |                 Local<Object> ToObject(Isolate* isolate) const);
npm ERR!       |                               ^~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2686:31: note:   candidate expects 1 argument, 0 provided
npm ERR!  2686 |                 Local<Object> ToObject(Isolate* isolate) const);
npm ERR!       |                               ^~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! ../src/bufferutil.cc:92:50: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    92 |     Local<Object> output_obj = info[2]->ToObject();
npm ERR!       |                                                  ^
npm ERR! In file included from ../src/bufferutil.cc:8:
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2672:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR!  2672 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2672:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from /home/my-user/.cache/node-gyp/12.22.7/include/node/v8-internal.h:14,
npm ERR!                  from /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:27,
npm ERR!                  from ../src/bufferutil.cc:8:
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2686:31: note: candidate: ‘v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const’
npm ERR!  2686 |                 Local<Object> ToObject(Isolate* isolate) const);
npm ERR!       |                               ^~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2686:31: note:   candidate expects 1 argument, 0 provided
npm ERR!  2686 |                 Local<Object> ToObject(Isolate* isolate) const);
npm ERR!       |                               ^~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
npm ERR!   328 |   declarator __attribute__((deprecated(message)))
npm ERR!       |   ^~~~~~~~~~
npm ERR! ../src/bufferutil.cc:93:51: error: no matching function for call to ‘v8::Value::Int32Value()’
npm ERR!    93 |     unsigned int dataOffset = info[3]->Int32Value();
npm ERR!       |                                                   ^
npm ERR! In file included from ../src/bufferutil.cc:8:
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
npm ERR!  2709 |   V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
npm ERR!       |                                        ^~~~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2709:40: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/bufferutil.cc:94:47: error: no matching function for call to ‘v8::Value::Int32Value()’
npm ERR!    94 |     unsigned int length = info[4]->Int32Value();
npm ERR!       |                                               ^
npm ERR! In file included from ../src/bufferutil.cc:8:
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
npm ERR!  2709 |   V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
npm ERR!       |                                        ^~~~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:2709:40: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/bufferutil.cc:9:
npm ERR! ../src/bufferutil.cc: At global scope:
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/node.h:736:43: warning: cast between incompatible function types from ‘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 ERR!   736 |       (node::addon_register_func) (regfunc),                          \
npm ERR!       |                                           ^
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/node.h:770:3: note: in expansion of macro ‘NODE_MODULE_X’
npm ERR!   770 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
npm ERR!       |   ^~~~~~~~~~~~~
npm ERR! ../src/bufferutil.cc:121:1: note: in expansion of macro ‘NODE_MODULE’
npm ERR!   121 | NODE_MODULE(bufferutil, init)
npm ERR!       | ^~~~~~~~~~~
npm ERR! In file included from ../src/bufferutil.cc:8:
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/node_object_wrap.h:85:78:   required from here
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
npm ERR! 10226 |                reinterpret_cast<Callback>(callback), type);
npm ERR!       |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
npm ERR! ../../../nan/nan_object_wrap.h:65:61:   required from here
npm ERR! /home/my-user/.cache/node-gyp/12.22.7/include/node/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
npm ERR! ../src/bufferutil.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BufferUtil::Mask(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../src/bufferutil.cc:103:39: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   103 |       case 3: *((unsigned char*)to+2) = *((unsigned char*)from+2) ^ *((unsigned char*)mask+2);
npm ERR!       |               ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../src/bufferutil.cc:104:7: note: here
npm ERR!   104 |       case 2: *((unsigned char*)to+1) = *((unsigned char*)from+1) ^ *((unsigned char*)mask+1);
npm ERR!       |       ^~~~
npm ERR! ../src/bufferutil.cc:104:39: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   104 |       case 2: *((unsigned char*)to+1) = *((unsigned char*)from+1) ^ *((unsigned char*)mask+1);
npm ERR!       |               ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../src/bufferutil.cc:105:7: note: here
npm ERR!   105 |       case 1: *((unsigned char*)to  ) = *((unsigned char*)from  ) ^ *((unsigned char*)mask);
npm ERR!       |       ^~~~
npm ERR! ../src/bufferutil.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BufferUtil::Unmask(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../src/bufferutil.cc:78:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!    78 |       case 3: *((unsigned char*)from+2) = *((unsigned char*)from+2) ^ ((unsigned char*)mask)[2];
npm ERR!       |               ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../src/bufferutil.cc:79:7: note: here
npm ERR!    79 |       case 2: *((unsigned char*)from+1) = *((unsigned char*)from+1) ^ ((unsigned char*)mask)[1];
npm ERR!       |       ^~~~
npm ERR! ../src/bufferutil.cc:79:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!    79 |       case 2: *((unsigned char*)from+1) = *((unsigned char*)from+1) ^ ((unsigned char*)mask)[1];
npm ERR!       |               ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../src/bufferutil.cc:80:7: note: here
npm ERR!    80 |       case 1: *((unsigned char*)from  ) = *((unsigned char*)from  ) ^ ((unsigned char*)mask)[0];
npm ERR!       |       ^~~~
npm ERR! make: *** [bufferutil.target.mk:112: Release/obj.target/bufferutil/src/bufferutil.o] Error 1
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (events.js:314:20)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
npm ERR! gyp ERR! System Linux 5.11.0-40-generic
npm ERR! gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /home/my-user/.npm-global/lib/node_modules/@aragon/cli/node_modules/@aragon/toolkit/node_modules/@web3-js/websocket
npm ERR! gyp ERR! node -v v12.22.7
npm ERR! gyp ERR! node-gyp -v v8.4.0
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/my-user/.npm/_logs/2021-11-24T22_43_56_365Z-debug.log

Expected behavior

Succesfull installation

Context

Good work for me:

git clone [email protected]:aragon/aragon-cli.git
cd aragon-cli
yarn  # doesn't work without this step
npm run build
cd packages/cli
npm install -g
cd packages/create-aragon-app
npm install -g
cd packages/toolkit
npm install -g

Environment

  • OS and OS version: Linux 5.11.0-40-generic #44~20.04.2-Ubuntu SMP
  • nodejs version: v12.22.7
  • npm version: 8.1.4
  • yarn version: 1.22.17
@welcome
Copy link

welcome bot commented Nov 24, 2021

Thanks for opening your first issue in aragonCLI! Someone will circle back soon ⚡

@sayertindall
Copy link

Also unable to install globally. Any fix to this?

@x88
Copy link
Author

x88 commented Dec 5, 2021

Also unable to install globally. Any fix to this?

This solution working for me

git clone [email protected]:aragon/aragon-cli.git
cd aragon-cli
yarn  # doesn't work without this step
npm run build
cd packages/cli
npm install -g
cd packages/create-aragon-app
npm install -g
cd packages/toolkit
npm install -g

@x88
Copy link
Author

x88 commented Dec 7, 2021

Update: good working with nvm and node v12

@joequant
Copy link

Is this buildable with node v16?

@alibama
Copy link

alibama commented Jan 24, 2022

no

@manhthong-sg
Copy link

Not working with node v12, I'm in node version 12.13.0

Also unable to install globally. Any fix to this?

This solution working for me

git clone [email protected]:aragon/aragon-cli.git
cd aragon-cli
yarn  # doesn't work without this step
npm run build
cd packages/cli
npm install -g
cd packages/create-aragon-app
npm install -g
cd packages/toolkit
npm install -g

Not working with node version 12.13.0, still can not install globally with command npm install -g @aragon/cli, some one help

@GaloisField2718
Copy link

We need to downgrade npm to install it ?

@alibama
Copy link

alibama commented Jun 21, 2022

https://evm-crispr.blossom.software/ is a better tool for most users = strongly recommend over the cli

@0x00000002
Copy link

Anyone solved it?
Can't install with npm/yarn/manually :(

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

7 participants