Git Product home page Git Product logo

Comments (6)

stsvilik avatar stsvilik commented on July 29, 2024 11

@eduardbcom Why not just create a PR to the original repo? Isn't that what open source is about?

from node-memwatch.

eduardbme avatar eduardbme commented on July 29, 2024 3

Use https://www.npmjs.com/package/node-memwatch, have updated it to support node >= 9.

from node-memwatch.

schmod avatar schmod commented on July 29, 2024 1

I think the issue is that it's gonna take some more work to make a version that works on both versions of node.

from node-memwatch.

AlexVyi avatar AlexVyi commented on July 29, 2024

/Users/alexandrupetru/.node-gyp/10.1.0/include/node/node.h:88:20: note: expanded from macro 'NODE_DEPRECATED'
attribute((deprecated(message))) declarator
^
../src/memwatch.cc:129:35: error: expected ';' after expression
Nan::AsyncResource async("nan:Callback:Call");
^
;
../src/memwatch.cc:129:22: error: no member named 'AsyncResource' in namespace 'Nan'
Nan::AsyncResource async("nan:Callback:Call");
~~~~~^
../src/memwatch.cc:129:36: error: use of undeclared identifier 'async'
Nan::AsyncResource async("nan:Callback:Call");
^
../src/memwatch.cc:130:38: error: use of undeclared identifier 'async'
g_cb->Call(3, argv, &async);
^
../src/memwatch.cc:206:31: error: expected ';' after expression
Nan::AsyncResource async("nan:Callback:Call");
^
;
../src/memwatch.cc:206:18: error: no member named 'AsyncResource' in namespace 'Nan'
Nan::AsyncResource async("nan:Callback:Call");
~~~~~^
../src/memwatch.cc:206:32: error: use of undeclared identifier 'async'
Nan::AsyncResource async("nan:Callback:Call");
^
../src/memwatch.cc:207:34: error: use of undeclared identifier 'async'
g_cb->Call(3, argv, &async);
^
4 warnings and 8 errors generated.
make: *** [Release/obj.target/memwatch/src/memwatch.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:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:235:12)
gyp ERR! System Darwin 17.5.0
gyp ERR! command "/usr/local/Cellar/node/10.1.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/alexandrupetru/WebstormProjects/epkstore/node_modules/node-memwatch
gyp ERR! node -v v10.1.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.

Maybe it helps.

from node-memwatch.

AlexVyi avatar AlexVyi commented on July 29, 2024

It works with Node 10 on Ubuntu 16.04 but it fails on High Sierra.Sorry for not being specific.

from node-memwatch.

adymorz avatar adymorz commented on July 29, 2024

I have got the same error message on Windows 10 1903 with node v10.16.0 using memwatch-next:

  win_delay_load_hook.cc
c:\...\project_name\node_modules\memwatch-next\src\init.cc(20): error C2039: "AddGCEpilogueCallback": Ist kein Element von "v8::V8" [c:\...\project_name\node_modules\memwatch-next\bu
ild\memwatch.vcxproj]
  c:\users\adrian dymorz\appdata\local\node-gyp\cache\10.16.0\include\node\v8.h(8087): note: Siehe Deklaration von "v8::V8"
c:\...\project_name\node_modules\memwatch-next\src\init.cc(20): error C3861: "AddGCEpilogueCallback": Bezeichner wurde nicht gefunden. [c:\...\project_name\node_modules\memwatch-next
\build\memwatch.vcxproj]

With node-memwatch it worked without troubles.

from node-memwatch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.