-
Notifications
You must be signed in to change notification settings - Fork 3
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
Error running install script for optional dependency: No such file or directory #9
Comments
msgpackr-extract@v1.1.3 + msgpackr-extract-darwin-x64@v1.1.0 all looks correct to me. From what I can tell, there is a carriage return in one of the scripts for node-gyp-build-optional-packages (branch of node-gyp-build), which I guess a npm publish from my windows box must have introduced. |
I think I fixed it by publishing node-gyp-build-optional-packages from a mac, but will do more testing tomorrow. |
I don't get an error anymore with the latest version of node-gyp-build-optional-packages 👍 |
Thank you for checking. I went ahead and published a v1.1.4 of msgpackr-extract that requires the 4.3.2 of node-gyp-build-optional-packages to make sure the fixed version is used. (a little longer explanation: inspired by the parcel-css approach of using optionalDependencies for housing the platform-specific binaries for smaller install size, I have been working on upgrading the prebuildify/node-gyp-build system to support this approach and also intend to use this for lmdb-js, which hopefully will further reduce the overall install size of parcel and other dependents of lmdb-js. But here we are in the year 2022 where computers are drawing detailed images from a simple text prompt, but you can't publish an NPM package with a hashbang script from windows machine and have it work on a mac 🤦 ) |
In your defense, I've had the exact same problem with another npm CLI utility a few days ago 😄 |
I wish |
Sorry about that. I generally think of major versions for breaking change to the public API (whereas there was no docs specifying any guarantees of package contents/structures). But certainly would have done a major version if I had known there was code/builds depending on the package structures, my apologies. |
Yes, I agree that normally API change triggers the major bump. I just got affected by the change and emotionally posted the message. Please don't consider the message as a complaint, and thanks for a well maintained module. In an ideal situation, I should have implemented tests for that pattern-based unpacking. |
No problem, It is helpful understanding how changes can break things for users for the future! |
@vladimiry what pattern are you currently using for copying the msgpackr-extract modules? Per the discussion/updates in prebuild/prebuildify#63 , msgpackr-extract will move to using @msgpackr-extract/msgpackr-extract-platform-arch as the location of the binary builds. I'll do major version bump for msgpackr-extract, but not clear if that is needed for msgpackr (would prefer not to since this a pretty internal thing, but I could do it) |
Thanks for the message. I was going to patch |
Ah, ok, good to know, thank you. Let me know if there is anything I can do to help make that work smoothly for you. And by the way, are you using |
Before triggering the compilation, I normally remove all the possibly existing *.node files, remove the |
My lockfile contains this:
But node_modules only contains:
msgpackr
andmsgpackr-extract-darwin-x64
. I can't findmsgpackr-extract
in there.Also, the repo contains 1.1.0 but the npm version is actually 1.1.3. Looks like you forgot to push the commits?
The text was updated successfully, but these errors were encountered: