Skip to content

Instantly share code, notes, and snippets.

@hughsaunders
Created July 5, 2019 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hughsaunders/d74e048fd91b6d5df017c4878a7de412 to your computer and use it in GitHub Desktop.
Save hughsaunders/d74e048fd91b6d5df017c4878a7de412 to your computer and use it in GitHub Desktop.
@airbnb/node-memwatch install failure
Hughs-MacBook-Pro:~ hugh$ npm i -g leakage
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
> @airbnb/node-memwatch@1.0.2 install /usr/local/lib/node_modules/leakage/node_modules/@airbnb/node-memwatch
> node-gyp rebuild
CXX(target) Release/obj.target/memwatch/src/heapdiff.o
In file included from ../src/heapdiff.cc:12:
../src/heapdiff.hh:18:38: error: no template named 'Handle' in namespace 'v8'
static void Initialize ( v8::Handle<v8::Object> target );
~~~~^
../src/heapdiff.cc:46:21: error: variable has incomplete type 'void'
heapdiff::HeapDiff::Initialize ( v8::Handle<v8::Object> target )
^
../src/heapdiff.cc:46:55: error: expected '(' for function-style cast or type construction
heapdiff::HeapDiff::Initialize ( v8::Handle<v8::Object> target )
~~~~~~~~~~^
../src/heapdiff.cc:46:38: error: no member named 'Handle' in namespace 'v8'
heapdiff::HeapDiff::Initialize ( v8::Handle<v8::Object> target )
~~~~^
../src/heapdiff.cc:46:57: error: use of undeclared identifier 'target'
heapdiff::HeapDiff::Initialize ( v8::Handle<v8::Object> target )
^
../src/heapdiff.cc:46:65: error: expected ';' after top level declarator
heapdiff::HeapDiff::Initialize ( v8::Handle<v8::Object> target )
^
;
../src/heapdiff.cc:132:14: error: unknown type name 'idset'
void setDiff(idset a, idset b, vector<uint64_t> &c)
^
../src/heapdiff.cc:132:23: error: unknown type name 'idset'
void setDiff(idset a, idset b, vector<uint64_t> &c)
^
../src/heapdiff.cc:134:10: error: use of undeclared identifier 'idset'
for (idset::iterator i = a.begin(); i != a.end(); i++) {
^
../src/heapdiff.cc:134:17: error: use of class template 'iterator' requires template arguments
for (idset::iterator i = a.begin(); i != a.end(); i++) {
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/iterator:521:29: note: template is declared here
struct _LIBCPP_TEMPLATE_VIS iterator
^
../src/heapdiff.cc:182:25: error: use of undeclared identifier 'handleToStr'
type.append(handleToStr(node->GetName()));
^
../src/heapdiff.cc:223:8: error: no template named 'Handle'
static Handle<Value> changesetToObject(changeset & changes)
^
../src/heapdiff.cc:230:12: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
d->Set(Nan::New("what").ToLocalChecked(), Nan::New(i->first.c_str()).ToLocalChecked());
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8.h:3358:3: note: 'Set' has been explicitly marked deprecated here
V8_DEPRECATE_SOON("Use maybe version",
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATE_SOON'
declarator __attribute__((deprecated(message)))
^
../src/heapdiff.cc:231:12: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
d->Set(Nan::New("size_bytes").ToLocalChecked(), Nan::New<v8::Number>(i->second.size));
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8.h:3358:3: note: 'Set' has been explicitly marked deprecated here
V8_DEPRECATE_SOON("Use maybe version",
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATE_SOON'
declarator __attribute__((deprecated(message)))
^
../src/heapdiff.cc:232:12: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
d->Set(Nan::New("size").ToLocalChecked(), Nan::New(mw_util::niceSize(i->second.size).c_str()).ToLocalChecked());
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8.h:3358:3: note: 'Set' has been explicitly marked deprecated here
V8_DEPRECATE_SOON("Use maybe version",
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATE_SOON'
declarator __attribute__((deprecated(message)))
^
../src/heapdiff.cc:233:12: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
d->Set(Nan::New("+").ToLocalChecked(), Nan::New<v8::Number>(i->second.added));
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8.h:3358:3: note: 'Set' has been explicitly marked deprecated here
V8_DEPRECATE_SOON("Use maybe version",
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATE_SOON'
declarator __attribute__((deprecated(message)))
^
../src/heapdiff.cc:234:12: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
d->Set(Nan::New("-").ToLocalChecked(), Nan::New<v8::Number>(i->second.released));
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8.h:3358:3: note: 'Set' has been explicitly marked deprecated here
V8_DEPRECATE_SOON("Use maybe version",
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATE_SOON'
declarator __attribute__((deprecated(message)))
^
../src/heapdiff.cc:235:12: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
a->Set(a->Length(), d);
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8.h:3367:3: note: 'Set' has been explicitly marked deprecated here
V8_DEPRECATE_SOON("Use maybe version",
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATE_SOON'
declarator __attribute__((deprecated(message)))
^
../src/heapdiff.cc:238:12: error: no viable conversion from returned value of type 'v8::Local<Array>' to function return type 'int'
return scope.Escape(a);
^~~~~~~~~~~~~~~
../src/heapdiff.cc:252:8: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
b->Set(Nan::New("nodes").ToLocalChecked(), Nan::New(before->GetNodesCount()));
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8.h:3358:3: note: 'Set' has been explicitly marked deprecated here
V8_DEPRECATE_SOON("Use maybe version",
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATE_SOON'
declarator __attribute__((deprecated(message)))
^
../src/heapdiff.cc:254:8: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
o->Set(Nan::New("before").ToLocalChecked(), b);
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8.h:3358:3: note: 'Set' has been explicitly marked deprecated here
V8_DEPRECATE_SOON("Use maybe version",
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATE_SOON'
declarator __attribute__((deprecated(message)))
^
../src/heapdiff.cc:257:8: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
a->Set(Nan::New("nodes").ToLocalChecked(), Nan::New(after->GetNodesCount()));
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8.h:3358:3: note: 'Set' has been explicitly marked deprecated here
V8_DEPRECATE_SOON("Use maybe version",
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATE_SOON'
declarator __attribute__((deprecated(message)))
^
../src/heapdiff.cc:259:8: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
o->Set(Nan::New("after").ToLocalChecked(), a);
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8.h:3358:3: note: 'Set' has been explicitly marked deprecated here
V8_DEPRECATE_SOON("Use maybe version",
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATE_SOON'
declarator __attribute__((deprecated(message)))
^
../src/heapdiff.cc:264:5: error: use of undeclared identifier 'buildIDSet'
buildIDSet(&beforeIDs, before->GetRoot(), s);
^
../src/heapdiff.cc:265:8: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
b->Set(Nan::New("size_bytes").ToLocalChecked(), Nan::New(s));
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8.h:3358:3: note: 'Set' has been explicitly marked deprecated here
V8_DEPRECATE_SOON("Use maybe version",
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATE_SOON'
declarator __attribute__((deprecated(message)))
^
../src/heapdiff.cc:266:8: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
b->Set(Nan::New("size").ToLocalChecked(), Nan::New(mw_util::niceSize(s).c_str()).ToLocalChecked());
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8.h:3358:3: note: 'Set' has been explicitly marked deprecated here
V8_DEPRECATE_SOON("Use maybe version",
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATE_SOON'
declarator __attribute__((deprecated(message)))
^
../src/heapdiff.cc:270:5: error: use of undeclared identifier 'buildIDSet'
buildIDSet(&afterIDs, after->GetRoot(), s);
^
../src/heapdiff.cc:271:8: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
a->Set(Nan::New("size_bytes").ToLocalChecked(), Nan::New(s));
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8.h:3358:3: note: 'Set' has been explicitly marked deprecated here
V8_DEPRECATE_SOON("Use maybe version",
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATE_SOON'
declarator __attribute__((deprecated(message)))
^
../src/heapdiff.cc:272:8: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
a->Set(Nan::New("size").ToLocalChecked(), Nan::New(mw_util::niceSize(s).c_str()).ToLocalChecked());
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8.h:3358:3: note: 'Set' has been explicitly marked deprecated here
V8_DEPRECATE_SOON("Use maybe version",
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATE_SOON'
declarator __attribute__((deprecated(message)))
^
../src/heapdiff.cc:277:8: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
c->Set(Nan::New("size_bytes").ToLocalChecked(), Nan::New(diffBytes));
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8.h:3358:3: note: 'Set' has been explicitly marked deprecated here
V8_DEPRECATE_SOON("Use maybe version",
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATE_SOON'
declarator __attribute__((deprecated(message)))
^
../src/heapdiff.cc:278:8: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
c->Set(Nan::New("size").ToLocalChecked(), Nan::New(mw_util::niceSize(diffBytes).c_str()).ToLocalChecked());
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8.h:3358:3: note: 'Set' has been explicitly marked deprecated here
V8_DEPRECATE_SOON("Use maybe version",
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATE_SOON'
declarator __attribute__((deprecated(message)))
^
../src/heapdiff.cc:279:8: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
o->Set(Nan::New("change").ToLocalChecked(), c);
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8.h:3358:3: note: 'Set' has been explicitly marked deprecated here
V8_DEPRECATE_SOON("Use maybe version",
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATE_SOON'
declarator __attribute__((deprecated(message)))
^
../src/heapdiff.cc:284:8: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
c->Set(Nan::New("freed_nodes").ToLocalChecked(), Nan::New<v8::Number>(changedIDs.size()));
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8.h:3358:3: note: 'Set' has been explicitly marked deprecated here
V8_DEPRECATE_SOON("Use maybe version",
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATE_SOON'
declarator __attribute__((deprecated(message)))
^
../src/heapdiff.cc:300:8: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
c->Set(Nan::New("allocated_nodes").ToLocalChecked(), Nan::New<v8::Number>(changedIDs.size()));
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8.h:3358:3: note: 'Set' has been explicitly marked deprecated here
V8_DEPRECATE_SOON("Use maybe version",
^
/Users/hugh/.node-gyp/12.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATE_SOON'
declarator __attribute__((deprecated(message)))
^
19 warnings and 15 errors generated.
make: *** [Release/obj.target/memwatch/src/heapdiff.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:200:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 18.6.0
gyp ERR! command "/usr/local/Cellar/node/12.5.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/leakage/node_modules/@airbnb/node-memwatch
gyp ERR! node -v v12.5.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @airbnb/node-memwatch@1.0.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @airbnb/node-memwatch@1.0.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/hugh/.npm/_logs/2019-07-05T14_34_51_402Z-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment