Comments (10)
Facing same issue on Amazon Linux.
from zerorpc-node.
Currently it doesn't compile with node versions > 12. So if it is an option for you downgrade to node 12 LTS and it should compile.
from zerorpc-node.
Hey, I am facing the same exact issue on an Amazon Linux. Did you manage to get past this issue?
from zerorpc-node.
It looks like this is an issue with upstream ZeroMQ, rather than with ZeroRPC directly, right? To confirm: are you able to successfully install/load ZeroMQ?
If that is in fact the issue, I imagine it would be fixed by updating the (rather outdated) ZMQ dependency, which is underway in #111
from zerorpc-node.
I have the same issue (albeit with more updated systems: macOS 11.0.1 and Node v14.17.1). zeromq
5.x.x successfully installs with npm install
(as do all other dependencies), I have successfully installed ZeroMQ on my system (via homebrew), and the python endpoint of zerorpc works. The problems seems to be that zeromq
4.x.x is incompatible with more up-do-date libzmq
builds.
Do you happen to know if the current code for zerorpc
is compatible with the zeromq
5.x.x APIs? I think it would solve the problem if it was.
from zerorpc-node.
Hmm. I am seeing the same exact problem in the simple zerorpc install.
npm install zerorpc (fails)
Can someone help me here please?
If this is still unresolved, can someone recommend what I need to roll back or work arounds?
Log snippet:
timing reify:rollback:createSparse Completed in 25ms
75 timing reify:rollback:retireShallow Completed in 0ms
76 timing command:install Completed in 2391ms
77 verbose stack Error: command failed
77 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/index.js:64:27)
77 verbose stack at ChildProcess.emit (node:events:390:28)
77 verbose stack at maybeClose (node:internal/child_process:1062:16)
77 verbose stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
78 verbose pkgid [email protected]
Platform info:
verbose Linux 5.11.0-43-generic
81 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "zmq"
82 verbose node v17.3.0
83 verbose npm v8.3.0
84 error code 1
85 error path /usr/lib/node_modules/zmq
86 error command failed
87 error command sh -c node-gyp rebuild
88 error make: Entering directory '/usr/lib/node_modules/zmq/build'
88 error CXX(target) Release/obj.target/zmq/binding.o
88 error make: Leaving directory '/usr/lib/node_modules/zmq/build'
89 error gyp info it worked if it ends with ok
89 error gyp info using [email protected]
89 error gyp info using [email protected] | linux | x64
89 error gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3"
89 error gyp info spawn /usr/bin/python3
89 error gyp info spawn args [
89 error gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
89 error gyp info spawn args 'binding.gyp',
89 error gyp info spawn args '-f',
89 error gyp info spawn args 'make',
89 error gyp info spawn args '-I',
Towards the end of the npm install log file
89 error /root/.cache/node-gyp/17.3.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided
89 error /root/.cache/node-gyp/17.3.0/include/node/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
89 error 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
89 error | ^~~
89 error /root/.cache/node-gyp/17.3.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided
89 error make: *** [zmq.target.mk:113: Release/obj.target/zmq/binding.o] Error 1
89 error gyp ERR! build error
89 error gyp ERR! stack Error: `make` failed with exit code: 2
89 error gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
89 error gyp ERR! stack at ChildProcess.emit (node:events:390:28)
89 error gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
89 error gyp ERR! System Linux 5.11.0-43-generic
89 error gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
89 error gyp ERR! cwd /usr/lib/node_modules/zmq
89 error gyp ERR! node -v v17.3.0
89 error gyp ERR! node-gyp -v v8.4.1
89 error gyp ERR! not ok
90 verbose exit 1
91 timing npm Completed in 2623ms
The following command worked:
npm install zeromq@5
up to date, audited 158 packages in 991ms
but followed by
npm install zerorpc fails
from zerorpc-node.
What are the options if we can not revert to node 12 version.
from zerorpc-node.
I may have a lead: forcing zeromq
twith Yarn resolutions, in package.json:
"resolutions": {
"**/mkdirp": "0.5.1",
"**/react-dev-utils": "7.0.5",
"**/react-docgen": "4.1.1",
"**/commander": "7.2.0",
"**/fs-extra": "9.1.0",
"**/react": "16.9.0",
"**/zeromq": "5.2.8"
}
Basically build zeromq on your own, and then force Zerorpc to use this version.
Then I hit an issue with Webpack: zeromq/zeromq.js#384
from zerorpc-node.
Having the exact same problem after upgrading Node-gyp, so then I tried downgrading NodeJS to 12 LTS and the problem still persists. I've been working at this for weeks and still can't find a solution. I have every version of VS from 2015 up installed with the desktop build tools, zeromq installs perfectly fine, its just zerorpc giving me consistent issues, even on different machines.
from zerorpc-node.
from zerorpc-node.
Related Issues (20)
- NPM version error in electron HOT 10
- Where is the love for typescript? HOT 4
- How to use it with Angular ? HOT 2
- Unable to install zerorpc using npm HOT 1
- can't install zerorpc-node HOT 1
- Promise support for newer versions of Node
- npm install HOT 8
- Can you please bump this to a supported version of Electron? HOT 21
- Broadcast reply to all clients
- Is the project dead? HOT 1
- Example code not work in locally HOT 8
- npm install fails on Windows 11 HOT 1
- Page refreshes when invoking a method HOT 5
- Crash in Windows 10 HOT 2
- Unable to connect in packaged electron app HOT 4
- Complex streaming doc/examples HOT 8
- Is this project dead? HOT 3
- Error installing package with node V10.0.0 HOT 6
- A dynamic link library (DLL) initialization routine failed. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zerorpc-node.