graphprotocol / graph-node

Graph Node indexes data from blockchains such as Ethereum and serves it over GraphQL
https://thegraph.com
Apache License 2.0
2.91k stars 978 forks source link

Quick Start/Local Development fails in graph init --from-example during yarn build step #1647

Closed fiatexodus closed 4 years ago

fiatexodus commented 4 years ago

Do you want to request a feature or report a bug? bug

What is the current behavior? ` XXXXX-MBP-5:thegraph xxxxxxx$ graph init --from-example XX-XXX/idle ✔ Subgraph name · XX-XXX/idle ✔ Directory to create the subgraph in · idle ——— ✔ Cloning example subgraph ✔ Update subgraph name and commands in package.json ✔ Initialize subgraph repository ✖ Failed to install dependencies: Command failed: yarn

**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.**
Follow the steps outlined here: https://thegraph.com/docs/quick-start#local-development
On this configuration:
* MacBookPro14,3
* macOS Catalina 10.15.4
* node version v13.14.0
* npm version 6.14.4
* Apple clang version 11.0.3

On step 3.2, the graph init --from-example XX-XXX/idle command is failing for me with the following output (sanitized):
`
Xxxxx-MBP-5:thegraph xxxxxxxx$ graph init --from-example XX-XXX/idle
✔ Subgraph name · XX-XXX/idle
✔ Directory to create the subgraph in · idle
———
✔ Cloning example subgraph
✔ Update subgraph name and commands in package.json
✔ Initialize subgraph repository
✖ Failed to install dependencies: Command failed: yarn
error /Users/xxxxxxxx/Git/xxxxxx/thegraph/idle/node_modules/sha3: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments: 
Directory: /Users/xxxxxxxx/Git/xxxxxx/thegraph/idle/node_modules/sha3
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@5.1.0
gyp info using node@13.14.0 | darwin | x64
gyp info find Python using Python version 2.7.16 found at "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python"
gyp info spawn /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
gyp info spawn args [
gyp info spawn args   '/Users/xxxxxxxx/.nvm/versions/node/v13.14.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/xxxxxxxx/Git/xxxxxx/thegraph/idle/node_modules/sha3/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/xxxxxxxx/.nvm/versions/node/v13.14.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0',
gyp info spawn args   '-Dnode_gyp_dir=/Users/xxxxxxxx/.nvm/versions/node/v13.14.0/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/xxxxxxxx/Git/xxxxxx/thegraph/idle/node_modules/sha3',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  CXX(target) Release/obj.target/sha3/src/addon.o
In file included from ../src/addon.cpp:4:
In file included from ../node_modules/nan/nan.h:202:
In file included from ../node_modules/nan/nan_converters.h:67:
../node_modules/nan/nan_converters_43_inl.h:22:1: error: no viable conversion from 'Local<v8::Context>' to 'v8::Isolate *'
X(Boolean)
^~~~~~~~~~
../node_modules/nan/nan_converters_43_inl.h:18:23: note: expanded from macro 'X'
      val->To ## TYPE(isolate->GetCurrentContext())                            \
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:2762:37: note: passing argument to parameter 'isolate' here
  Local<Boolean> ToBoolean(Isolate* isolate) const;
                                    ^
In file included from ../src/addon.cpp:4:
In file included from ../node_modules/nan/nan.h:202:
In file included from ../node_modules/nan/nan_converters.h:67:
../node_modules/nan/nan_converters_43_inl.h:40:1: error: no viable conversion from 'Local<v8::Context>' to 'v8::Isolate *'
X(bool, Boolean)
^~~~~~~~~~~~~~~~
../node_modules/nan/nan_converters_43_inl.h:37:29: note: expanded from macro 'X'
  return val->NAME ## Value(isolate->GetCurrentContext());                     \
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:2771:30: note: passing argument to parameter 'isolate' here
  bool BooleanValue(Isolate* isolate) const;
                             ^
In file included from ../src/addon.cpp:4:
In file included from ../node_modules/nan/nan.h:203:
In file included from ../node_modules/nan/nan_new.h:189:
../node_modules/nan/nan_implementation_12_inl.h:103:42: error: no viable conversion from 'v8::Isolate *' to 'Local<v8::Context>'
  return scope.Escape(v8::Function::New( isolate
                                         ^~~~~~~
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:189:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::Isolate *' to 'const v8::Local<v8::Context> &' for 1st argument
class Local {
      ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:189:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'v8::Isolate *' to 'v8::Local<v8::Context> &&' for 1st argument
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:193:13: note: candidate template ignored: could not match 'Local<type-parameter-0-0>' against 'v8::Isolate *'
  V8_INLINE Local(Local<S> that)
            ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:4313:22: note: passing argument to parameter 'context' here
      Local<Context> context, FunctionCallback callback,
                     ^
In file included from ../src/addon.cpp:4:
In file included from ../node_modules/nan/nan.h:203:
In file included from ../node_modules/nan/nan_new.h:189:
../node_modules/nan/nan_implementation_12_inl.h:337:37: error: too few arguments to function call, expected 2, have 1
  return v8::StringObject::New(value).As<v8::StringObject>();
         ~~~~~~~~~~~~~~~~~~~~~      ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:5688:3: note: 'New' declared here
  static Local<Value> New(Isolate* isolate, Local<String> value);
  ^
In file included from ../src/addon.cpp:4:
../node_modules/nan/nan.h:1034:53: error: too few arguments to function call, single argument 'context' was not specified
      v8::Local<v8::String> string = from->ToString();
                                     ~~~~~~~~~~~~~~ ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:2750:3: note: 'ToString' declared here
  V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
  ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
In file included from ../src/addon.cpp:4:
../node_modules/nan/nan.h:1044:37: error: cannot initialize a parameter of type 'v8::Isolate *' with an lvalue of type 'char *'
        length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
                                    ^~~~
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:2947:26: note: passing argument to parameter 'isolate' here
  int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
                         ^
In file included from ../src/addon.cpp:4:
../node_modules/nan/nan.h:1818:28: error: no matching member function for call to 'Set'
    New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
    ~~~~~~~~~~~~~~~~~~~~~~~^~~
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3547:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3550:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
In file included from ../src/addon.cpp:4:
../node_modules/nan/nan.h:1824:28: error: no matching member function for call to 'Set'
    New(persistentHandle)->Set(key, value);
    ~~~~~~~~~~~~~~~~~~~~~~~^~~
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3547:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3550:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
In file included from ../src/addon.cpp:4:
../node_modules/nan/nan.h:1830:28: error: no matching member function for call to 'Set'
    New(persistentHandle)->Set(index, value);
    ~~~~~~~~~~~~~~~~~~~~~~~^~~
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3547:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3550:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
In file included from ../src/addon.cpp:4:
../node_modules/nan/nan.h:1836:32: error: no matching member function for call to 'Get'
        New(persistentHandle)->Get(New(key).ToLocalChecked()));
        ~~~~~~~~~~~~~~~~~~~~~~~^~~
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
In file included from ../src/addon.cpp:4:
../node_modules/nan/nan.h:1842:48: error: no matching member function for call to 'Get'
    return scope.Escape(New(persistentHandle)->Get(key));
                        ~~~~~~~~~~~~~~~~~~~~~~~^~~
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
In file included from ../src/addon.cpp:4:
../node_modules/nan/nan.h:1847:48: error: no matching member function for call to 'Get'
    return scope.Escape(New(persistentHandle)->Get(index));
                        ~~~~~~~~~~~~~~~~~~~~~~~^~~
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
In file included from ../src/addon.cpp:4:
In file included from ../node_modules/nan/nan.h:2657:
../node_modules/nan/nan_object_wrap.h:24:25: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >'
    assert(persistent().IsNearDeath());
           ~~~~~~~~~~~~ ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/assert.h:93:25: note: expanded from macro 'assert'
    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
                        ^
In file included from ../src/addon.cpp:4:
In file included from ../node_modules/nan/nan.h:2657:
../node_modules/nan/nan_object_wrap.h:67:18: error: no member named 'MarkIndependent' in 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >'
    persistent().MarkIndependent();
    ~~~~~~~~~~~~ ^
../node_modules/nan/nan_object_wrap.h:124:26: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >'
    assert(wrap->handle_.IsNearDeath());
           ~~~~~~~~~~~~~ ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/assert.h:93:25: note: expanded from macro 'assert'
    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
                        ^
In file included from ../src/addon.cpp:9:
In file included from ../src/KeccakNISTInterface.h:17:
../src/KeccakSponge.h:23:9: warning: 'ALIGN' macro redefined [-Wmacro-redefined]
#define ALIGN __attribute__ ((aligned(32)))
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/i386/param.h:83:9: note: previous definition is here
#define ALIGN(p)        __DARWIN_ALIGN(p)
        ^
../src/addon.cpp:36:64: error: too few arguments to function call, single argument 'context' was not specified
                hashlen = info[0]->IsUndefined() ? 512 : info[0]->Int32Value();
                                                         ~~~~~~~~~~~~~~~~~~~ ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:2778:3: note: 'Int32Value' declared here
  V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
  ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../src/addon.cpp:76:36: error: too few arguments to function call, single argument 'context' was not specified
                constructor.Reset(t->GetFunction());
                                  ~~~~~~~~~~~~~~ ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:6283:3: note: 'GetFunction' declared here
  V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
  ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../src/addon.cpp:77:77: error: too few arguments to function call, single argument 'context' was not specified
                target->Set(Nan::New<String>("SHA3Hash").ToLocalChecked(), t->GetFunction());
                                                                           ~~~~~~~~~~~~~~ ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:6283:3: note: 'GetFunction' declared here
  V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
  ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../src/addon.cpp:97:49: error: too few arguments to function call, single argument 'context' was not specified
                        Local<Object> buffer_obj = info[0]->ToObject();
                                                   ~~~~~~~~~~~~~~~~~ ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:2754:3: note: 'ToObject' declared here
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
  ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
1 warning and 19 errors generated.
make: *** [Release/obj.target/sha3/src/addon.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/xxxxxxxx/.nvm/versions/node/v13.14.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Darwin 19.4.0
gyp ERR! command "/Users/xxxxxxxx/.nvm/versions/node/v13.14.0/bin/node" "/Users/xxxxxxxx/.nvm/versions/node/v13.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/xxxxxxxx/Git/xxxxxx/thegraph/idle/node_modules/sha3
gyp ERR! node -v v13.14.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok

/Users/xxxxxxxx/.nvm/versions/node/v13.14.0/lib/node_modules/@graphprotocol/graph-cli/node_modules/binaryen/index.js:7
if(n){p=__dirname+"/";var ea,fa;a.read=function(c,e){var b=q(c);b||(ea||(ea=require("fs")),fa||(fa=require("path")),c=fa.normalize(c),b=ea.readFileSync(c));return e?b:b.toString()};a.readBinary=function(c){c=a.read(c,!0);c.buffer||(c=new Uint8Array(c));assert(c.buffer);return c};1<process.argv.length&&(a.thisProgram=process.argv[1].replace(/\\/g,"/"));a.arguments=process.argv.slice(2);process.on("uncaughtException",function(c){if(!(c instanceof ha))throw c;});process.on("unhandledRejection",u);a.quit=
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^

Error: Command failed: yarn
error /Users/xxxxxxxx/Git/xxxxxx/thegraph/idle/node_modules/sha3: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments: 
Directory: /Users/xxxxxxxx/Git/xxxxxx/thegraph/idle/node_modules/sha3
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@5.1.0
gyp info using node@13.14.0 | darwin | x64
gyp info find Python using Python version 2.7.16 found at "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python"
gyp info spawn /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
gyp info spawn args [
gyp info spawn args   '/Users/xxxxxxxx/.nvm/versions/node/v13.14.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/xxxxxxxx/Git/xxxxxx/thegraph/idle/node_modules/sha3/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/xxxxxxxx/.nvm/versions/node/v13.14.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0',
gyp info spawn args   '-Dnode_gyp_dir=/Users/xxxxxxxx/.nvm/versions/node/v13.14.0/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/xxxxxxxx/Git/xxxxxx/thegraph/idle/node_modules/sha3',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  CXX(target) Release/obj.target/sha3/src/addon.o
In file included from ../src/addon.cpp:4:
In file included from ../node_modules/nan/nan.h:202:
In file included from ../node_modules/nan/nan_converters.h:67:
../node_modules/nan/nan_converters_43_inl.h:22:1: error: no viable conversion from 'Local<v8::Context>' to 'v8::Isolate *'
X(Boolean)
^~~~~~~~~~
../node_modules/nan/nan_converters_43_inl.h:18:23: note: expanded from macro 'X'
      val->To ## TYPE(isolate->GetCurrentContext())                            \
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:2762:37: note: passing argument to parameter 'isolate' here
  Local<Boolean> ToBoolean(Isolate* isolate) const;
                                    ^
In file included from ../src/addon.cpp:4:
In file included from ../node_modules/nan/nan.h:202:
In file included from ../node_modules/nan/nan_converters.h:67:
../node_modules/nan/nan_converters_43_inl.h:40:1: error: no viable conversion from 'Local<v8::Context>' to 'v8::Isolate *'
X(bool, Boolean)
^~~~~~~~~~~~~~~~
../node_modules/nan/nan_converters_43_inl.h:37:29: note: expanded from macro 'X'
  return val->NAME ## Value(isolate->GetCurrentContext());                     \
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:2771:30: note: passing argument to parameter 'isolate' here
  bool BooleanValue(Isolate* isolate) const;
                             ^
In file included from ../src/addon.cpp:4:
In file included from ../node_modules/nan/nan.h:203:
In file included from ../node_modules/nan/nan_new.h:189:
../node_modules/nan/nan_implementation_12_inl.h:103:42: error: no viable conversion from 'v8::Isolate *' to 'Local<v8::Context>'
  return scope.Escape(v8::Function::New( isolate
                                         ^~~~~~~
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:189:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::Isolate *' to 'const v8::Local<v8::Context> &' for 1st argument
class Local {
      ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:189:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'v8::Isolate *' to 'v8::Local<v8::Context> &&' for 1st argument
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:193:13: note: candidate template ignored: could not match 'Local<type-parameter-0-0>' against 'v8::Isolate *'
  V8_INLINE Local(Local<S> that)
            ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:4313:22: note: passing argument to parameter 'context' here
      Local<Context> context, FunctionCallback callback,
                     ^
In file included from ../src/addon.cpp:4:
In file included from ../node_modules/nan/nan.h:203:
In file included from ../node_modules/nan/nan_new.h:189:
../node_modules/nan/nan_implementation_12_inl.h:337:37: error: too few arguments to function call, expected 2, have 1
  return v8::StringObject::New(value).As<v8::StringObject>();
         ~~~~~~~~~~~~~~~~~~~~~      ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:5688:3: note: 'New' declared here
  static Local<Value> New(Isolate* isolate, Local<String> value);
  ^
In file included from ../src/addon.cpp:4:
../node_modules/nan/nan.h:1034:53: error: too few arguments to function call, single argument 'context' was not specified
      v8::Local<v8::String> string = from->ToString();
                                     ~~~~~~~~~~~~~~ ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:2750:3: note: 'ToString' declared here
  V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
  ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
In file included from ../src/addon.cpp:4:
../node_modules/nan/nan.h:1044:37: error: cannot initialize a parameter of type 'v8::Isolate *' with an lvalue of type 'char *'
        length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
                                    ^~~~
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:2947:26: note: passing argument to parameter 'isolate' here
  int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
                         ^
In file included from ../src/addon.cpp:4:
../node_modules/nan/nan.h:1818:28: error: no matching member function for call to 'Set'
    New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
    ~~~~~~~~~~~~~~~~~~~~~~~^~~
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3547:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3550:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
In file included from ../src/addon.cpp:4:
../node_modules/nan/nan.h:1824:28: error: no matching member function for call to 'Set'
    New(persistentHandle)->Set(key, value);
    ~~~~~~~~~~~~~~~~~~~~~~~^~~
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3547:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3550:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
In file included from ../src/addon.cpp:4:
../node_modules/nan/nan.h:1830:28: error: no matching member function for call to 'Set'
    New(persistentHandle)->Set(index, value);
    ~~~~~~~~~~~~~~~~~~~~~~~^~~
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3547:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3550:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
In file included from ../src/addon.cpp:4:
../node_modules/nan/nan.h:1836:32: error: no matching member function for call to 'Get'
        New(persistentHandle)->Get(New(key).ToLocalChecked()));
        ~~~~~~~~~~~~~~~~~~~~~~~^~~
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
In file included from ../src/addon.cpp:4:
../node_modules/nan/nan.h:1842:48: error: no matching member function for call to 'Get'
    return scope.Escape(New(persistentHandle)->Get(key));
                        ~~~~~~~~~~~~~~~~~~~~~~~^~~
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
In file included from ../src/addon.cpp:4:
../node_modules/nan/nan.h:1847:48: error: no matching member function for call to 'Get'
    return scope.Escape(New(persistentHandle)->Get(index));
                        ~~~~~~~~~~~~~~~~~~~~~~~^~~
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
In file included from ../src/addon.cpp:4:
In file included from ../node_modules/nan/nan.h:2657:
../node_modules/nan/nan_object_wrap.h:24:25: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >'
    assert(persistent().IsNearDeath());
           ~~~~~~~~~~~~ ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/assert.h:93:25: note: expanded from macro 'assert'
    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
                        ^
In file included from ../src/addon.cpp:4:
In file included from ../node_modules/nan/nan.h:2657:
../node_modules/nan/nan_object_wrap.h:67:18: error: no member named 'MarkIndependent' in 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >'
    persistent().MarkIndependent();
    ~~~~~~~~~~~~ ^
../node_modules/nan/nan_object_wrap.h:124:26: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >'
    assert(wrap->handle_.IsNearDeath());
           ~~~~~~~~~~~~~ ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/assert.h:93:25: note: expanded from macro 'assert'
    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
                        ^
In file included from ../src/addon.cpp:9:
In file included from ../src/KeccakNISTInterface.h:17:
../src/KeccakSponge.h:23:9: warning: 'ALIGN' macro redefined [-Wmacro-redefined]
#define ALIGN __attribute__ ((aligned(32)))
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/i386/param.h:83:9: note: previous definition is here
#define ALIGN(p)        __DARWIN_ALIGN(p)
        ^
../src/addon.cpp:36:64: error: too few arguments to function call, single argument 'context' was not specified
                hashlen = info[0]->IsUndefined() ? 512 : info[0]->Int32Value();
                                                         ~~~~~~~~~~~~~~~~~~~ ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:2778:3: note: 'Int32Value' declared here
  V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
  ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../src/addon.cpp:76:36: error: too few arguments to function call, single argument 'context' was not specified
                constructor.Reset(t->GetFunction());
                                  ~~~~~~~~~~~~~~ ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:6283:3: note: 'GetFunction' declared here
  V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
  ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../src/addon.cpp:77:77: error: too few arguments to function call, single argument 'context' was not specified
                target->Set(Nan::New<String>("SHA3Hash").ToLocalChecked(), t->GetFunction());
                                                                           ~~~~~~~~~~~~~~ ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:6283:3: note: 'GetFunction' declared here
  V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
  ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../src/addon.cpp:97:49: error: too few arguments to function call, single argument 'context' was not specified
                        Local<Object> buffer_obj = info[0]->ToObject();
                                                   ~~~~~~~~~~~~~~~~~ ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:2754:3: note: 'ToObject' declared here
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
  ^
/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
1 warning and 19 errors generated.
make: *** [Release/obj.target/sha3/src/addon.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/xxxxxxxx/.nvm/versions/node/v13.14.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Darwin 19.4.0
gyp ERR! command "/Users/xxxxxxxx/.nvm/versions/node/v13.14.0/bin/node" "/Users/xxxxxxxx/.nvm/versions/node/v13.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/xxxxxxxx/Git/xxxxxx/thegraph/idle/node_modules/sha3
gyp ERR! node -v v13.14.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok

    at ChildProcess.exithandler (child_process.js:303:12)
    at ChildProcess.emit (events.js:315:20)
    at maybeClose (internal/child_process.js:1026:16)
    at Socket.<anonymous> (internal/child_process.js:441:11)
    at Socket.emit (events.js:315:20)
    at Pipe.<anonymous> (net.js:674:12) {
  killed: false,
  code: 1,
  signal: null,
  cmd: 'yarn',
  stderr: 'error /Users/xxxxxxxx/Git/xxxxxx/thegraph/idle/node_modules/sha3: Command failed.\n' +
    'Exit code: 1\n' +
    'Command: node-gyp rebuild\n' +
    'Arguments: \n' +
    'Directory: /Users/xxxxxxxx/Git/xxxxxx/thegraph/idle/node_modules/sha3\n' +
    'Output:\n' +
    'gyp info it worked if it ends with ok\n' +
    'gyp info using node-gyp@5.1.0\n' +
    'gyp info using node@13.14.0 | darwin | x64\n' +
    'gyp info find Python using Python version 2.7.16 found at "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python"\n' +
    'gyp info spawn /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python\n' +
    'gyp info spawn args [\n' +
    "gyp info spawn args   '/Users/xxxxxxxx/.nvm/versions/node/v13.14.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',\n" +
    "gyp info spawn args   'binding.gyp',\n" +
    "gyp info spawn args   '-f',\n" +
    "gyp info spawn args   'make',\n" +
    "gyp info spawn args   '-I',\n" +
    "gyp info spawn args   '/Users/xxxxxxxx/Git/xxxxxx/thegraph/idle/node_modules/sha3/build/config.gypi',\n" +
    "gyp info spawn args   '-I',\n" +
    "gyp info spawn args   '/Users/xxxxxxxx/.nvm/versions/node/v13.14.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',\n" +
    "gyp info spawn args   '-I',\n" +
    "gyp info spawn args   '/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/common.gypi',\n" +
    "gyp info spawn args   '-Dlibrary=shared_library',\n" +
    "gyp info spawn args   '-Dvisibility=default',\n" +
    "gyp info spawn args   '-Dnode_root_dir=/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0',\n" +
    "gyp info spawn args   '-Dnode_gyp_dir=/Users/xxxxxxxx/.nvm/versions/node/v13.14.0/lib/node_modules/npm/node_modules/node-gyp',\n" +
    "gyp info spawn args   '-Dnode_lib_file=/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/<(target_arch)/node.lib',\n" +
    "gyp info spawn args   '-Dmodule_root_dir=/Users/xxxxxxxx/Git/xxxxxx/thegraph/idle/node_modules/sha3',\n" +
    "gyp info spawn args   '-Dnode_engine=v8',\n" +
    "gyp info spawn args   '--depth=.',\n" +
    "gyp info spawn args   '--no-parallel',\n" +
    "gyp info spawn args   '--generator-output',\n" +
    "gyp info spawn args   'build',\n" +
    "gyp info spawn args   '-Goutput_dir=.'\n" +
    'gyp info spawn args ]\n' +
    'gyp info spawn make\n' +
    "gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]\n" +
    '  CXX(target) Release/obj.target/sha3/src/addon.o\n' +
    'In file included from ../src/addon.cpp:4:\n' +
    'In file included from ../node_modules/nan/nan.h:202:\n' +
    'In file included from ../node_modules/nan/nan_converters.h:67:\n' +
    "../node_modules/nan/nan_converters_43_inl.h:22:1: error: no viable conversion from 'Local<v8::Context>' to 'v8::Isolate *'\n" +
    'X(Boolean)\n' +
    '^~~~~~~~~~\n' +
    "../node_modules/nan/nan_converters_43_inl.h:18:23: note: expanded from macro 'X'\n" +
    '      val->To ## TYPE(isolate->GetCurrentContext())                            \\\n' +
    '                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\n' +
    "/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:2762:37: note: passing argument to parameter 'isolate' here\n" +
    '  Local<Boolean> ToBoolean(Isolate* isolate) const;\n' +
    '                                    ^\n' +
    'In file included from ../src/addon.cpp:4:\n' +
    'In file included from ../node_modules/nan/nan.h:202:\n' +
    'In file included from ../node_modules/nan/nan_converters.h:67:\n' +
    "../node_modules/nan/nan_converters_43_inl.h:40:1: error: no viable conversion from 'Local<v8::Context>' to 'v8::Isolate *'\n" +
    'X(bool, Boolean)\n' +
    '^~~~~~~~~~~~~~~~\n' +
    "../node_modules/nan/nan_converters_43_inl.h:37:29: note: expanded from macro 'X'\n" +
    '  return val->NAME ## Value(isolate->GetCurrentContext());                     \\\n' +
    '                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\n' +
    "/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:2771:30: note: passing argument to parameter 'isolate' here\n" +
    '  bool BooleanValue(Isolate* isolate) const;\n' +
    '                             ^\n' +
    'In file included from ../src/addon.cpp:4:\n' +
    'In file included from ../node_modules/nan/nan.h:203:\n' +
    'In file included from ../node_modules/nan/nan_new.h:189:\n' +
    "../node_modules/nan/nan_implementation_12_inl.h:103:42: error: no viable conversion from 'v8::Isolate *' to 'Local<v8::Context>'\n" +
    '  return scope.Escape(v8::Function::New( isolate\n' +
    '                                         ^~~~~~~\n' +
    "/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:189:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::Isolate *' to 'const v8::Local<v8::Context> &' for 1st argument\n" +
    'class Local {\n' +
    '      ^\n' +
    "/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:189:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'v8::Isolate *' to 'v8::Local<v8::Context> &&' for 1st argument\n" +
    "/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:193:13: note: candidate template ignored: could not match 'Local<type-parameter-0-0>' against 'v8::Isolate *'\n" +
    '  V8_INLINE Local(Local<S> that)\n' +
    '            ^\n' +
    "/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:4313:22: note: passing argument to parameter 'context' here\n" +
    '      Local<Context> context, FunctionCallback callback,\n' +
    '                     ^\n' +
    'In file included from ../src/addon.cpp:4:\n' +
    'In file included from ../node_modules/nan/nan.h:203:\n' +
    'In file included from ../node_modules/nan/nan_new.h:189:\n' +
    '../node_modules/nan/nan_implementation_12_inl.h:337:37: error: too few arguments to function call, expected 2, have 1\n' +
    '  return v8::StringObject::New(value).As<v8::StringObject>();\n' +
    '         ~~~~~~~~~~~~~~~~~~~~~      ^\n' +
    "/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:5688:3: note: 'New' declared here\n" +
    '  static Local<Value> New(Isolate* isolate, Local<String> value);\n' +
    '  ^\n' +
    'In file included from ../src/addon.cpp:4:\n' +
    "../node_modules/nan/nan.h:1034:53: error: too few arguments to function call, single argument 'context' was not specified\n" +
    '      v8::Local<v8::String> string = from->ToString();\n' +
    '                                     ~~~~~~~~~~~~~~ ^\n' +
    "/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:2750:3: note: 'ToString' declared here\n" +
    '  V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(\n' +
    '  ^\n' +
    "/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'\n" +
    '#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))\n' +
    '                              ^\n' +
    'In file included from ../src/addon.cpp:4:\n' +
    "../node_modules/nan/nan.h:1044:37: error: cannot initialize a parameter of type 'v8::Isolate *' with an lvalue of type 'char *'\n" +
    '        length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);\n' +
    '                                    ^~~~\n' +
    "/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:2947:26: note: passing argument to parameter 'isolate' here\n" +
    '  int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,\n' +
    '                         ^\n' +
    'In file included from ../src/addon.cpp:4:\n' +
    "../node_modules/nan/nan.h:1818:28: error: no matching member function for call to 'Set'\n" +
    '    New(persistentHandle)->Set(New(key).ToLocalChecked(), value);\n' +
    '    ~~~~~~~~~~~~~~~~~~~~~~~^~~\n' +
    '/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3547:37: note: candidate function not viable: requires 3 arguments, but 2 were provided\n' +
    '  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,\n' +
    '                                    ^\n' +
    '/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3550:37: note: candidate function not viable: requires 3 arguments, but 2 were provided\n' +
    '  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,\n' +
    '                                    ^\n' +
    'In file included from ../src/addon.cpp:4:\n' +
    "../node_modules/nan/nan.h:1824:28: error: no matching member function for call to 'Set'\n" +
    '    New(persistentHandle)->Set(key, value);\n' +
    '    ~~~~~~~~~~~~~~~~~~~~~~~^~~\n' +
    '/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3547:37: note: candidate function not viable: requires 3 arguments, but 2 were provided\n' +
    '  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,\n' +
    '                                    ^\n' +
    '/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3550:37: note: candidate function not viable: requires 3 arguments, but 2 were provided\n' +
    '  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,\n' +
    '                                    ^\n' +
    'In file included from ../src/addon.cpp:4:\n' +
    "../node_modules/nan/nan.h:1830:28: error: no matching member function for call to 'Set'\n" +
    '    New(persistentHandle)->Set(index, value);\n' +
    '    ~~~~~~~~~~~~~~~~~~~~~~~^~~\n' +
    '/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3547:37: note: candidate function not viable: requires 3 arguments, but 2 were provided\n' +
    '  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,\n' +
    '                                    ^\n' +
    '/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3550:37: note: candidate function not viable: requires 3 arguments, but 2 were provided\n' +
    '  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,\n' +
    '                                    ^\n' +
    'In file included from ../src/addon.cpp:4:\n' +
    "../node_modules/nan/nan.h:1836:32: error: no matching member function for call to 'Get'\n" +
    '        New(persistentHandle)->Get(New(key).ToLocalChecked()));\n' +
    '        ~~~~~~~~~~~~~~~~~~~~~~~^~~\n' +
    '/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was provided\n' +
    '  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,\n' +
    '                                          ^\n' +
    '/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was provided\n' +
    '  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,\n' +
    '                                          ^\n' +
    'In file included from ../src/addon.cpp:4:\n' +
    "../node_modules/nan/nan.h:1842:48: error: no matching member function for call to 'Get'\n" +
    '    return scope.Escape(New(persistentHandle)->Get(key));\n' +
    '                        ~~~~~~~~~~~~~~~~~~~~~~~^~~\n' +
    '/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was provided\n' +
    '  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,\n' +
    '                                          ^\n' +
    '/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was provided\n' +
    '  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,\n' +
    '                                          ^\n' +
    'In file included from ../src/addon.cpp:4:\n' +
    "../node_modules/nan/nan.h:1847:48: error: no matching member function for call to 'Get'\n" +
    '    return scope.Escape(New(persistentHandle)->Get(index));\n' +
    '                        ~~~~~~~~~~~~~~~~~~~~~~~^~~\n' +
    '/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was provided\n' +
    '  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,\n' +
    '                                          ^\n' +
    '/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was provided\n' +
    '  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,\n' +
    '                                          ^\n' +
    'In file included from ../src/addon.cpp:4:\n' +
    'In file included from ../node_modules/nan/nan.h:2657:\n' +
    "../node_modules/nan/nan_object_wrap.h:24:25: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >'\n" +
    '    assert(persistent().IsNearDeath());\n' +
    '           ~~~~~~~~~~~~ ^\n' +
    "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/assert.h:93:25: note: expanded from macro 'assert'\n" +
    '    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)\n' +
    '                        ^\n' +
    'In file included from ../src/addon.cpp:4:\n' +
    'In file included from ../node_modules/nan/nan.h:2657:\n' +
    "../node_modules/nan/nan_object_wrap.h:67:18: error: no member named 'MarkIndependent' in 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >'\n" +
    '    persistent().MarkIndependent();\n' +
    '    ~~~~~~~~~~~~ ^\n' +
    "../node_modules/nan/nan_object_wrap.h:124:26: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >'\n" +
    '    assert(wrap->handle_.IsNearDeath());\n' +
    '           ~~~~~~~~~~~~~ ^\n' +
    "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/assert.h:93:25: note: expanded from macro 'assert'\n" +
    '    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)\n' +
    '                        ^\n' +
    'In file included from ../src/addon.cpp:9:\n' +
    'In file included from ../src/KeccakNISTInterface.h:17:\n' +
    "../src/KeccakSponge.h:23:9: warning: 'ALIGN' macro redefined [-Wmacro-redefined]\n" +
    '#define ALIGN __attribute__ ((aligned(32)))\n' +
    '        ^\n' +
    '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/i386/param.h:83:9: note: previous definition is here\n' +
    '#define ALIGN(p)        __DARWIN_ALIGN(p)\n' +
    '        ^\n' +
    "../src/addon.cpp:36:64: error: too few arguments to function call, single argument 'context' was not specified\n" +
    '                hashlen = info[0]->IsUndefined() ? 512 : info[0]->Int32Value();\n' +
    '                                                         ~~~~~~~~~~~~~~~~~~~ ^\n' +
    "/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:2778:3: note: 'Int32Value' declared here\n" +
    '  V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;\n' +
    '  ^\n' +
    "/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'\n" +
    '#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))\n' +
    '                              ^\n' +
    "../src/addon.cpp:76:36: error: too few arguments to function call, single argument 'context' was not specified\n" +
    '                constructor.Reset(t->GetFunction());\n' +
    '                                  ~~~~~~~~~~~~~~ ^\n' +
    "/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:6283:3: note: 'GetFunction' declared here\n" +
    '  V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(\n' +
    '  ^\n' +
    "/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'\n" +
    '#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))\n' +
    '                              ^\n' +
    "../src/addon.cpp:77:77: error: too few arguments to function call, single argument 'context' was not specified\n" +
    '                target->Set(Nan::New<String>("SHA3Hash").ToLocalChecked(), t->GetFunction());\n' +
    '                                                                           ~~~~~~~~~~~~~~ ^\n' +
    "/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:6283:3: note: 'GetFunction' declared here\n" +
    '  V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(\n' +
    '  ^\n' +
    "/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'\n" +
    '#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))\n' +
    '                              ^\n' +
    "../src/addon.cpp:97:49: error: too few arguments to function call, single argument 'context' was not specified\n" +
    '                        Local<Object> buffer_obj = info[0]->ToObject();\n' +
    '                                                   ~~~~~~~~~~~~~~~~~ ^\n' +
    "/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8.h:2754:3: note: 'ToObject' declared here\n" +
    '  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(\n' +
    '  ^\n' +
    "/Users/xxxxxxxx/Library/Caches/node-gyp/13.14.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'\n" +
    '#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))\n' +
    '                              ^\n' +
    '1 warning and 19 errors generated.\n' +
    'make: *** [Release/obj.target/sha3/src/addon.o] Error 1\n' +
    'gyp ERR! build error \n' +
    'gyp ERR! stack Error: `make` failed with exit code: 2\n' +
    'gyp ERR! stack     at ChildProcess.onExit (/Users/xxxxxxxx/.nvm/versions/node/v13.14.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)\n' +
    'gyp ERR! stack     at ChildProcess.emit (events.js:315:20)\n' +
    'gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)\n' +
    'gyp ERR! System Darwin 19.4.0\n' +
    'gyp ERR! command "/Users/xxxxxxxx/.nvm/versions/node/v13.14.0/bin/node" "/Users/xxxxxxxx/.nvm/versions/node/v13.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"\n' +
    'gyp ERR! cwd /Users/xxxxxxxx/Git/xxxxxx/thegraph/idle/node_modules/sha3\n' +
    'gyp ERR! node -v v13.14.0\n' +
    'gyp ERR! node-gyp -v v5.1.0\n' +
    'gyp ERR! not ok\n'
}

`

What is the expected behavior? Not this error.

This issue is probably similar to this one: https://github.com/graphprotocol/graph-node/issues/1008 It's likely related to all the issues people have been seeing with node-gyp/keccak/macOS catalina.

fiatexodus commented 4 years ago

A colleague posted on the graphprotocol discord where it was suggested we try an LTS version of node (v12.16.3)--unfortunately seeing the same problem with that configuration.

fiatexodus commented 4 years ago

The problem is that node-gyp is incompatible with Node.js 12.x (see https://github.com/phusion/node-sha3/issues/32#issuecomment-489696413). I was able to follow the exact instructions in the tutorial by configuring to use Node.js LTS v10.16.0.

0xprathamesh commented 1 year ago

PS C:\Users\Prathamesh Patil\Desktop\my-project> npx hardhat run scripts/deploy.js --network mumbai

Compiled 1 Solidity file successfully CodeCamp deployed to : 0xdE6483f02c65Aee674B18b694c9323AC73002a4d PS C:\Users\Prathamesh Patil\Desktop\my-project> ^C PS C:\Users\Prathamesh Patil\Desktop\my-project> ^C PS C:\Users\Prathamesh Patil\Desktop\my-project> ^C PS C:\Users\Prathamesh Patil\Desktop\my-project> graph init
√ Protocol · ethereum √ Product for which to initialize · hosted-service √ Subgraph name · prathamesh48/codecamp √ Directory to create the subgraph in · codecamp ? Ethereum network ... ? Ethereum network ... ? Ethereum network ... ? Ethereum network ... ? Ethereum network ... ? Ethereum network ... ? Ethereum network ... ? Ethereum network ... √ Ethereum network · mumbai √ Contract address · 0xdE6483f02c65Aee674B18b694c9323AC73002a4d × Failed to fetch ABI from Etherscan: ABI not found, try loading it from a local file √ ABI file (path) · C:\Users\Prathamesh Patil\Desktop\codecamp\artifacts\contracts\CodeCamp.sol\CodeCamp.json √ Start Block · 31784989
√ Contract Name · CodeCamp √ Index contract events as entities (Y/n) · false ——— Generate subgraph Write subgraph to directory √ Create subgraph scaffold √ Initialize networks config √ Initialize subgraph repository × Failed to install dependencies: Command failed: yarn warning @graphprotocol/graph-cli > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 warning @graphprotocol/graph-cli > request > 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. warning @graphprotocol/graph-cli > request > har-validator@5.1.5: this library is no longer supported warning @graphprotocol/graph-cli > ipfs-http-client > cids@0.7.5: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipfs-block > cids@0.7.5: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > cids@0.7.5: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor@0.15.3: This module has been superseded by @ipld/dag-cbor and multiformats warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > cids@0.8.3: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb@0.17.4: This module has been superseded by @ipld/dag-pb and multiformats warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > cids@0.7.5: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-raw@4.0.1: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-raw > cids@0.7.5: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > multibase@0.6.1: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > cids > multibase@0.6.1: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > multibase@0.6.1: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > cids > multibase@1.0.1: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > multiaddr@6.1.1: This module is deprecated, please upgrade to @multiformats/multiaddr warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > multiaddr@7.5.0: This module is deprecated, please upgrade to @multiformats/multiaddr warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > multiaddr > cids@0.8.3: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > multiaddr > multibase@0.7.0: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > multicodec@0.5.7: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > cids > multicodec@1.0.4: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > multicodec@1.0.4: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > cids > multicodec@1.0.4: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > multicodec@0.5.7: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-raw > multicodec@1.0.4: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > multihashes > multibase@0.7.0: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > cids > multihashes > multibase@1.0.1: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > peer-info@0.15.1: No longer supported for js-libp2p0.28.0 or later warning @graphprotocol/graph-cli > ipfs-http-client > peer-info > multiaddr@6.1.1: This module is deprecated, please upgrade to @multiformats/multiaddr warning @graphprotocol/graph-cli > ipfs-http-client > promisify-es6@1.0.3: Unmaintained warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > multihashing-async@0.8.2: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > multihashing-async@0.7.0: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-raw > multihashing-async@0.8.2: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > mafmt > multiaddr@7.5.0: This module is deprecated, please upgrade to @multiformats/multiaddr warning @graphprotocol/graph-cli > ipfs-http-client > peer-info > mafmt > multiaddr@6.1.1: This module is deprecated, please upgrade to @multiformats/multiaddr warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > protons@1.2.1: This module is no longer maintained warning @graphprotocol/graph-cli > ipfs-http-client > peer-id > libp2p-crypto > multihashing-async@0.5.2: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > peer-id > libp2p-crypto > protons@1.2.1: This module is no longer maintained warning @graphprotocol/graph-cli > ipfs-http-client > peer-id > libp2p-crypto > libp2p-crypto-secp256k1@0.3.1: Included in libp2p-crypto, use it instead. https://github.com/libp2p/js-libp2p-crypto warning @graphprotocol/graph-cli > ipfs-http-client > peer-id > libp2p-crypto > libp2p-crypto-secp256k1 > multihashing-async@0.6.0: This module has been superseded by the multiformats module error An unexpected error occurred: "https://raw.githubusercontent.com/hugomrdias/concat-stream/057bc7b5d6d8df26c8cf00a3f151b6721a0a8034/package.json: connect ETIMEDOUT 2405:200:1607:2820:41::36:443". Error: connect ETIMEDOUT 2405:200:1607:2820:41::36:443 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1487:16)

C:\Users\Prathamesh Patil\AppData\Roaming\npm\node_modules\@graphprotocol\graph-cli\node_modules\gluegun\build\index.js:13 throw up; ^

Error: Command failed: yarn warning @graphprotocol/graph-cli > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 warning @graphprotocol/graph-cli > request > 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. warning @graphprotocol/graph-cli > request > har-validator@5.1.5: this library is no longer supported warning @graphprotocol/graph-cli > ipfs-http-client > cids@0.7.5: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipfs-block > cids@0.7.5: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > cids@0.7.5: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor@0.15.3: This module has been superseded by @ipld/dag-cbor and multiformats warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > cids@0.8.3: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb@0.17.4: This module has been superseded by @ipld/dag-pb and multiformats warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > cids@0.7.5: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-raw@4.0.1: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-raw > cids@0.7.5: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > multibase@0.6.1: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > cids > multibase@0.6.1: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > multibase@0.6.1: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > cids > multibase@1.0.1: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > multiaddr@6.1.1: This module is deprecated, please upgrade to @multiformats/multiaddr warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > multiaddr@7.5.0: This module is deprecated, please upgrade to @multiformats/multiaddr warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > multiaddr > cids@0.8.3: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > multiaddr > multibase@0.7.0: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > multicodec@0.5.7: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > cids > multicodec@1.0.4: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > multicodec@1.0.4: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > cids > multicodec@1.0.4: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > multicodec@0.5.7: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-raw > multicodec@1.0.4: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > multihashes > multibase@0.7.0: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > cids > multihashes > multibase@1.0.1: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > peer-info@0.15.1: No longer supported for js-libp2p0.28.0 or later warning @graphprotocol/graph-cli > ipfs-http-client > peer-info > multiaddr@6.1.1: This module is deprecated, please upgrade to @multiformats/multiaddr warning @graphprotocol/graph-cli > ipfs-http-client > promisify-es6@1.0.3: Unmaintained warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > multihashing-async@0.8.2: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > multihashing-async@0.7.0: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > ipld-raw > multihashing-async@0.8.2: This module has been superseded by the multiformats module warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > mafmt > multiaddr@7.5.0: This module is deprecated, please upgrade to @multiformats/multiaddr warning @graphprotocol/graph-cli > ipfs-http-client > peer-info > mafmt > multiaddr@6.1.1: This module is deprecated, please upgrade to @multiformats/multiaddr warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > protons@1.2.1: This module is no longer maintained warning @graphprotocol/graph-cli > ipfs-http-client > peer-id > libp2p-crypto > multihashing-async@0.5.2: This module has been superseded by the multiformats module
warning @graphprotocol/graph-cli > ipfs-http-client > peer-id > libp2p-crypto > protons@1.2.1: This module is no longer maintained warning @graphprotocol/graph-cli > ipfs-http-client > peer-id > libp2p-crypto > libp2p-crypto-secp256k1@0.3.1: Included in libp2p-crypto, use it instead. https://github.com/libp2p/js-libp2p-crypto warning @graphprotocol/graph-cli > ipfs-http-client > peer-id > libp2p-crypto > libp2p-crypto-secp256k1 > multihashing-async@0.6.0: This module has been superseded by the multiformats module error An unexpected error occurred: "https://raw.githubusercontent.com/hugomrdias/concat-stream/057bc7b5d6d8df26c8cf00a3f151b6721a0a8034/package.json: connect ETIMEDOUT 2405:200:1607:2820:41::36:443". Error: connect ETIMEDOUT 2405:200:1607:2820:41::36:443 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1487:16)

at ChildProcess.exithandler (node:child_process:419:12)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1091:16)
at ChildProcess._handle.onexit (node:internal/child_process:302:5) {

code: 1, killed: false, signal: null, cmd: 'yarn', stderr: 'warning @graphprotocol/graph-cli > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142\n' + 'warning @graphprotocol/graph-cli > request > 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.\n' + 'warning @graphprotocol/graph-cli > request > har-validator@5.1.5: this library is no longer supported\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > cids@0.7.5: This module has been superseded by the multiformats module\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > ipfs-block > cids@0.7.5: This module has been superseded by the multiformats module\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > cids@0.7.5: This module has been superseded by the multiformats module\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor@0.15.3: This module has been superseded by @ipld/dag-cbor and multiformats\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > cids@0.8.3: This module has been superseded by the multiformats module\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb@0.17.4: This module has been superseded by @ipld/dag-pb and multiformats\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > cids@0.7.5: This module has been superseded by the multiformats module\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-raw@4.0.1: This module has been superseded by the multiformats module\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-raw > cids@0.7.5: This module has been superseded by the multiformats module\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > multibase@0.6.1: This module has been superseded by the multiformats module\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > cids > multibase@0.6.1: This module has been superseded by the multiformats module\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > multibase@0.6.1: This module has been superseded by the multiformats module\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > cids > multibase@1.0.1: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > multiaddr@6.1.1: This module is deprecated, please upgrade to @multiformats/multiaddr\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > multiaddr@7.5.0: This module is deprecated, please upgrade to @multiformats/multiaddr\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > multiaddr > cids@0.8.3: This module has been superseded by the multiformats module\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > multiaddr > multibase@0.7.0: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > multicodec@0.5.7: This module has been superseded by the multiformats module\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > cids > multicodec@1.0.4: This module has been superseded by the multiformats module\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > multicodec@1.0.4: This module has been superseded by the multiformats module\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > cids > multicodec@1.0.4: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > multicodec@0.5.7: This module has been superseded by the multiformats module\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-raw > multicodec@1.0.4: This module has been superseded by the multiformats module\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > multihashes > multibase@0.7.0: This module has been superseded by the multiformats module\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > cids > multihashes > multibase@1.0.1: This module has been superseded by the multiformats module\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > peer-info@0.15.1: No longer supported for js-libp2p0.28.0 or later\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > peer-info > multiaddr@6.1.1: This module is deprecated, please upgrade to @multiformats/multiaddr\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > promisify-es6@1.0.3: Unmaintained\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-cbor > multihashing-async@0.8.2: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > multihashing-async@0.7.0: This module has been superseded by the multiformats module\n' +
'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-raw > multihashing-async@0.8.2: This module has been superseded by the multiformats module\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > is-ipfs > mafmt > multiaddr@7.5.0: This module is deprecated, please upgrade to @multiformats/multiaddr\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > peer-info > mafmt > multiaddr@6.1.1: This module is deprecated, please upgrade to @multiformats/multiaddr\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > ipld-dag-pb > protons@1.2.1: This module is no longer maintained\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > peer-id > libp2p-crypto > multihashing-async@0.5.2: This module has been superseded by the multiformats module\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > peer-id > libp2p-crypto > protons@1.2.1: This module is no longer maintained\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > peer-id > libp2p-crypto > libp2p-crypto-secp256k1@0.3.1: Included in libp2p-crypto, use it instead. https://github.com/libp2p/js-libp2p-crypto\n' + 'warning @graphprotocol/graph-cli > ipfs-http-client > peer-id > libp2p-crypto > libp2p-crypto-secp256k1 > multihashing-async@0.6.0: This module has been superseded by the multiformats module\n' + 'error An unexpected error occurred: "https://raw.githubusercontent.com/hugomrdias/concat-stream/057bc7b5d6d8df26c8cf00a3f151b6721a0a8034/package.json: connect ETIMEDOUT 2405:200:1607:2820:41::36:443".\n' + 'Error: connect ETIMEDOUT 2405:200:1607:2820:41::36:443\n' + ' at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1487:16)\n' }

Node.js v18.13.0 PS C:\Users\Prathamesh Patil\Desktop\my-project> ^C

please fix this issue