-
Notifications
You must be signed in to change notification settings - Fork 317
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
Cant install npm package unit-http
, "libunit version mismatch"
#1219
Comments
In simple terms this means the version of unit-http you're trying to The check it's failing on is #if NXT_VERNUM != NXT_NODE_VERNUM
#error "libunit version mismatch."
#endif from These versions essentially come from the However seeing as you installed unit via your package manager you'd Any reason not to just use the packaged module though? |
Im not sure if i understand correctly. I have unit installed via apt. Is there a version relationship between the unit-http npm module & unit/unit-dev from apt? I have unit v1.32.1 installed. The latest release of
What module are you meaning? To clarify things: I just copy & pasted all your installation guide's.
I do not want to use any specific version or any other kind of special case. |
Yes, they both need to be the same version. So it broke before because NXT_VERNUM is 13201 and NXT_NODE_VERNUM is 13200
Hmm, so there is no nodejs module package... |
Ok, now i understand. Any reason there is not a unit-http v1.32.1 module in the npm registry? There should also be a note on the docs (https://unit.nginx.org/installation/#node-js) that the unit & unit-http module need matching version numbers. |
Not sure, probably an oversight, maybe @tippexs or @thresheek knows?
Indeed, that vital bit of information does seem to be missing... (I'll open a unit-docs issue for it) |
I have freshly installed, unit & unit-dev via apt on my ubuntu 22.04.4.
When i run
npm install -g --unsafe-perm unit-http
i get a "libunit version mismatch":Followed the install steps: https://unit.nginx.org/installation/#node-js
node.js version: v20.11.1
npm version: v10.2.4
os version: Ubuntu 22.04.4 LTS
node-gyp version: v10.1.0
How can i fix this/install
unit-http
& why does it not download a pre-compiled version from npm?Thanks in advance
The text was updated successfully, but these errors were encountered: