Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install v5 on macOS #592

Open
azhuchkov opened this issue Dec 18, 2023 · 0 comments
Open

Unable to install v5 on macOS #592

azhuchkov opened this issue Dec 18, 2023 · 0 comments
Labels

Comments

@azhuchkov
Copy link

Describe the bug
npm install zeromq@5 fails on macOS with the following text in the end:

...
npm ERR! In file included from ../binding.cc:24:
npm ERR! In file included from /Users/andrey/Library/Caches/node-gyp/21.2.0/include/node/v8.h:24:
npm ERR! In file included from /Users/andrey/Library/Caches/node-gyp/21.2.0/include/node/v8-array-buffer.h:12:
npm ERR! /Users/andrey/Library/Caches/node-gyp/21.2.0/include/node/v8-local-handle.h:253:5: error: static_assert failed due to requirement 'std::is_base_of<v8::Value, v8::Data>::value' "type check"
npm ERR!     static_assert(std::is_base_of<T, S>::value, "type check");
npm ERR!     ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../../nan/nan_callbacks_12_inl.h:175:20: note: in instantiation of function template specialization 'v8::Local<v8::Value>::Local<v8::Data>' requested here
npm ERR!       cbinfo(info, obj->GetInternalField(kDataIndex));
npm ERR!                    ^
npm ERR! 8 warnings and 1 error generated.
npm ERR! make: *** [Release/obj.target/zmq/binding.o] Error 1
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
npm ERR! gyp ERR! System Darwin 21.6.0
npm ERR! gyp ERR! command "/usr/local/Cellar/node/21.2.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /Users/andrey/Playground/aaa/node_modules/zeromq
npm ERR! gyp ERR! node -v v21.2.0
npm ERR! gyp ERR! node-gyp -v v10.0.1
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: /Users/andrey/.npm/_logs/2023-12-18T17_3....log

Expected behavior
Installed module dependency.

Tested on

  • OS: macOS 12.7.1 x86_64
  • ZeroMQ.js version: 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant